From 23b14f87cf701654b231017171a61b1e6fb4a322 Mon Sep 17 00:00:00 2001 From: Hesham ALMatary Date: Fri, 22 Aug 2014 15:20:16 -0500 Subject: sptests/spcache01: Make inline assembly conditional to account for OpenRISC l.nop instruction. --- testsuites/sptests/spcache01/init.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3