summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spcache01/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/spcache01/init.c')
-rw-r--r--testsuites/sptests/spcache01/init.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/testsuites/sptests/spcache01/init.c b/testsuites/sptests/spcache01/init.c
index 09bb300ef3..8f5623c241 100644
--- a/testsuites/sptests/spcache01/init.c
+++ b/testsuites/sptests/spcache01/init.c
@@ -23,17 +23,14 @@
#include <rtems.h>
#include <rtems/counter.h>
+#include <rtems/score/cpuimpl.h>
#include <rtems/score/sysstate.h>
#include "tmacros.h"
const char rtems_test_name[] = "SPCACHE 1";
-#ifdef __or1k__
- #define I() __asm__ volatile ("l.nop")
-#else
- #define I() __asm__ volatile ("nop")
-#endif
+#define I() _CPU_Instruction_no_operation()
#define I8() I(); I(); I(); I(); I(); I(); I(); I()