qemu/tests/tcg/cris/sys.h
Anthony Liguori c09015dd04 tests: mv tests/* -> tests/tcg
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-01-12 10:03:28 -06:00

17 lines
350 B
C

#include <unistd.h>
#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY(x)
#define CURRENT_LOCATION __FILE__ ":" TOSTRING(__LINE__)
#define err() \
{ \
_fail("at " CURRENT_LOCATION " "); \
}
#define mb() asm volatile ("" : : : "memory")
void pass(void);
void _fail(char *reason);