diff options
author | Hesham ALMatary <heshamelmatary@gmail.com> | 2014-08-22 15:20:16 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-08-25 11:12:16 -0500 |
commit | 23b14f87cf701654b231017171a61b1e6fb4a322 (patch) | |
tree | a378a92c68684864bdd83c6337c8a4f5071f6daf /testsuites/sptests/spcache01 | |
parent | bsp/mpc55xx: Fix comment (diff) | |
download | rtems-23b14f87cf701654b231017171a61b1e6fb4a322.tar.bz2 |
sptests/spcache01: Make inline assembly conditional to account for OpenRISC l.nop instruction.
Diffstat (limited to 'testsuites/sptests/spcache01')
-rw-r--r-- | 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 2c9d184bee..ad9b54f4df 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() |