1#include <stdio.h>
2
3#ifdef M5
4#include <gem5/m5ops.h>
5
6// If you need to define this, you should have removed the -DM5OP_ADDR
7// when compiling the m5op_x86.o
8//void *m5_mem = (void*)0xCAFEBABE;
9#endif
10
11int main() {
12    #ifdef M5
13    m5_exit(0);
14    #endif
15    printf("FAIL!\n");
16    printf("Program should have exited due to the magic m5_exit"
17           " instruction!\n");
18    return -1;
19}
20