Slowpath debugging interface

This commit is contained in:
Aaron Culliney 2019-06-28 18:31:08 -07:00
parent fe714af37c
commit 412fb06011

View File

@ -318,12 +318,12 @@ cpu_runloop:
}
MB_StartOfCpuExecute();
if (is_debugging) {
if (UNLIKELY(is_debugging)) {
debugging_cycles = run_args.cpu65_cycles_to_execute;
}
do {
if (is_debugging) {
if (UNLIKELY(is_debugging)) {
run_args.cpu65_cycles_to_execute = 1;
}
@ -336,7 +336,7 @@ cpu_runloop:
dbg_cycles_executed += run_args.cpu65_cycle_count;
#endif
if (is_debugging) {
if (UNLIKELY(is_debugging)) {
debugging_cycles -= run_args.cpu65_cycle_count;
timing_checkpointCycles();
@ -358,7 +358,7 @@ cpu_runloop:
goto cpu_runloop;
}
}
} while (is_debugging);
} while (UNLIKELY(is_debugging));
MB_UpdateCycles();
// TODO : modularize MB and other peripheral card cycles/interrupts ...