Add 40-bit DMA support to LSI scsi emulation (Ryan Harper)
[qemu/qemu-JZ.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);