From b74353ef9cadda401f7637beeb56f7f8a2092a43 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 20 Jul 2018 08:06:46 +0200 Subject: score: Add _CPU_Instruction_no_operation() This helps to reduce the use of architecture-specific defines throughout the code base. --- testsuites/sptests/spcache01/init.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'testsuites/sptests') 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 #include +#include #include #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() -- cgit v1.2.3