|
|
@@ -70,9 +70,11 @@ void simulation_exit(int status)
|
|
|
// pass exit status via rxfifo register
|
|
|
UART0->RXFIFO = status;
|
|
|
uart_write(UART0, 4);
|
|
|
+#if defined(SIMULATION_MODE)
|
|
|
#if SIMULATION_MODE == SIMULATION_MODE_QEMU
|
|
|
#define QEMU_VIRT_TEST_BASE 0x100000
|
|
|
#define QEMU_SIG_EXIT 0x3333
|
|
|
REG32(QEMU_VIRT_TEST_BASE) = (status << 16) | QEMU_SIG_EXIT;
|
|
|
#endif
|
|
|
+#endif
|
|
|
}
|