Changeset b74353e in rtems for testsuites


Ignore:
Timestamp:
07/20/18 06:06:46 (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
3a646426
Parents:
42f2fdfd
git-author:
Sebastian Huber <sebastian.huber@…> (07/20/18 06:06:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/20/18 07:11:05)
Message:

score: Add _CPU_Instruction_no_operation()

This helps to reduce the use of architecture-specific defines throughout
the code base.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spcache01/init.c

    r42f2fdfd rb74353e  
    2424#include <rtems.h>
    2525#include <rtems/counter.h>
     26#include <rtems/score/cpuimpl.h>
    2627#include <rtems/score/sysstate.h>
    2728
     
    3031const char rtems_test_name[] = "SPCACHE 1";
    3132
    32 #ifdef __or1k__
    33   #define I() __asm__ volatile ("l.nop")
    34 #else
    35   #define I() __asm__ volatile ("nop")
    36 #endif
     33#define I() _CPU_Instruction_no_operation()
    3734
    3835#define I8() I(); I(); I(); I(); I(); I(); I(); I()
Note: See TracChangeset for help on using the changeset viewer.