mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 04:25:16 +08:00
sptests/spcache01: Make inline assembly conditional to account for OpenRISC l.nop instruction.
This commit is contained in:
committed by
Joel Sherrill
parent
4b104834eb
commit
23b14f87cf
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user