From 412fb06011f1d8f688d4f0731b5fb3b3e1611a9e Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Fri, 28 Jun 2019 18:31:08 -0700 Subject: [PATCH] Slowpath debugging interface --- src/timing.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/timing.c b/src/timing.c index 51bb0dcd..5c1b7a13 100644 --- a/src/timing.c +++ b/src/timing.c @@ -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 ...