MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / cpu_crash

Function cpu_crash

core/cpu.c:856–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854}
855
856void 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
866static void cpu_halt(void) {
867 cpu.halted = true;

Callers 5

mem_read_flash_parallelFunction · 0.85
control_writeFunction · 0.85
watchdog_pulseFunction · 0.85
autotester.cppFile · 0.85
doStuffMethod · 0.85

Calls 4

cpu_set_signalFunction · 0.85
debug_get_flagsFunction · 0.85
debug_openFunction · 0.85
gui_console_printfFunction · 0.50

Tested by

no test coverage detected