summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-20 08:06:46 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-20 09:11:05 +0200
commitb74353ef9cadda401f7637beeb56f7f8a2092a43 (patch)
tree788976e302cbeb4774faa0fd819352bd18c56fdc /testsuites/sptests
parentscore: Move context validation declarations (diff)
downloadrtems-b74353ef9cadda401f7637beeb56f7f8a2092a43.tar.bz2
score: Add _CPU_Instruction_no_operation()
This helps to reduce the use of architecture-specific defines throughout the code base.
Diffstat (limited to 'testsuites/sptests')
-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()