[rtems commit] sptests/spcache01: Make inline assembly conditional to account for OpenRISC l.nop instruction .

Joel Sherrill joel at rtems.org
Mon Aug 25 16:05:52 UTC 2014


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

Author:    Hesham ALMatary <heshamelmatary at gmail.com>
Date:      Fri Aug 22 15:20:16 2014 -0500

sptests/spcache01: Make inline assembly conditional to account for OpenRISC l.nop instruction.

---

 testsuites/sptests/spcache01/init.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/testsuites/sptests/spcache01/init.c b/testsuites/sptests/spcache01/init.c
index 2c9d184..ad9b54f 100644
--- a/testsuites/sptests/spcache01/init.c
+++ b/testsuites/sptests/spcache01/init.c
@@ -27,7 +27,11 @@
 
 const char rtems_test_name[] = "SPCACHE 1";
 
-#define I() __asm__ volatile ("nop")
+#ifdef __or1k__
+  #define I() __asm__ volatile ("l.nop")
+#else
+  #define I() __asm__ volatile ("nop")
+#endif
 
 #define I8() I(); I(); I(); I(); I(); I(); I(); I()
 



More information about the vc mailing list