[rtems commit] lm32/shared/milkymist_pfpu/pfpu.c: Fix indentation and braces

Joel Sherrill joel at rtems.org
Wed Apr 5 14:26:49 UTC 2017


Module:    rtems
Branch:    master
Commit:    c44de8507f20ab4f5029ba22eece4130449a176f
Changeset: http://git.rtems.org/rtems/commit/?id=c44de8507f20ab4f5029ba22eece4130449a176f

Author:    Joel Sherrill <joel at rtems.org>
Date:      Wed Apr  5 11:16:47 2017 -0500

lm32/shared/milkymist_pfpu/pfpu.c: Fix indentation and braces

---

 c/src/lib/libbsp/lm32/shared/milkymist_pfpu/pfpu.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/c/src/lib/libbsp/lm32/shared/milkymist_pfpu/pfpu.c b/c/src/lib/libbsp/lm32/shared/milkymist_pfpu/pfpu.c
index b83baf4..a9c2121 100644
--- a/c/src/lib/libbsp/lm32/shared/milkymist_pfpu/pfpu.c
+++ b/c/src/lib/libbsp/lm32/shared/milkymist_pfpu/pfpu.c
@@ -110,13 +110,14 @@ static rtems_status_code pfpu_execute(struct pfpu_td *td)
   if (sc != RTEMS_SUCCESSFUL)
     return sc;
 
-  if (td->update)
+  if (td->update) {
     update_registers(td->registers);
     if (td->invalidate) {
       __asm__ volatile( /* Invalidate Level-1 data cache */
-      "wcsr DCC, r0\n"
-      "nop\n"
-    );
+        "wcsr DCC, r0\n"
+        "nop\n"
+      );
+    }
   }
 
   return RTEMS_SUCCESSFUL;




More information about the vc mailing list