From 3f2546b2ef55b661fd8dd69682b38992225e86f6 Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Mon, 29 Apr 2019 01:17:54 +0100 Subject: Initial import of qemu-2.4.1 --- tests/tcg/cris/sys.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/tcg/cris/sys.h (limited to 'tests/tcg/cris/sys.h') diff --git a/tests/tcg/cris/sys.h b/tests/tcg/cris/sys.h new file mode 100644 index 00000000..c5f88e1a --- /dev/null +++ b/tests/tcg/cris/sys.h @@ -0,0 +1,16 @@ +#include + +#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); -- cgit v1.2.3