All registers are set to 0 on reset (Robert Reif)
[qemu/qemu_0_9_1_stable.git] / tests / cris / sys.h
blobd2ed4ce753ca50a751caaf93155837c306502894
1 #include <unistd.h>
3 #define STRINGIFY(x) #x
4 #define TOSTRING(x) STRINGIFY(x)
6 #define CURRENT_LOCATION __FILE__ ":" TOSTRING(__LINE__)
8 #define err() \
9 { \
10 _fail("at " CURRENT_LOCATION " "); \
13 #define mb() asm volatile ("" : : : "memory")
15 extern void pass(void);
16 extern void _fail(char *reason);