Merge remote-tracking branch 'remotes/gkurz/tags/for-upstream' into staging
[qemu/ar7.git] / tests / tcg / cris / sys.h
blob3dd47bb673068a62dfcb1f42eec5cf98db5b172b
1 #include <unistd.h>
3 #define STRINGIFY(x) #x
4 #define TOSTRING(x) STRINGIFY(x)
6 #define always_inline inline __attribute__((always_inline))
8 #define CURRENT_LOCATION __FILE__ ":" TOSTRING(__LINE__)
10 #define err() \
11 { \
12 _fail("at " CURRENT_LOCATION " "); \
15 #define mb() asm volatile ("" : : : "memory")
17 void pass(void);
18 void _fail(char *reason);