sim-card
/
qemu
Archived
10
0
Fork 0
This repository has been archived on 2022-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
qemu/tests/cris/sys.h

17 lines
364 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")
extern void pass(void);
extern void _fail(char *reason);