| 854 | } |
| 855 | |
| 856 | void cpu_crash(const char *msg) { |
| 857 | cpu_set_signal(CPU_SIGNAL_RESET); |
| 858 | gui_console_printf("[CEmu] Reset caused by %s.\n", msg); |
| 859 | #ifdef DEBUG_SUPPORT |
| 860 | if (debug_get_flags() & DBG_OPEN_ON_RESET) { |
| 861 | debug_open(DBG_MISC_RESET, cpu.registers.PC); |
| 862 | } |
| 863 | #endif |
| 864 | } |
| 865 | |
| 866 | static void cpu_halt(void) { |
| 867 | cpu.halted = true; |
no test coverage detected