From 8d67848ddfff10484f454499f70ffa9935749fcb Mon Sep 17 00:00:00 2001 From: kub Date: Fri, 27 Mar 2020 19:27:05 +0100 Subject: [PATCH] fix for 68K cycle accounting --- pico/pico_cmn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pico/pico_cmn.c b/pico/pico_cmn.c index 017c404b..8863bb39 100644 --- a/pico/pico_cmn.c +++ b/pico/pico_cmn.c @@ -35,6 +35,7 @@ static void SekExecM68k(int cyc_do) #elif defined(EMU_F68K) Pico.t.m68c_cnt += fm68k_emulate(&PicoCpuFM68k, cyc_do, 0) - cyc_do; #endif + SekCyclesLeft = 0; } static void SekSyncM68k(void) @@ -46,8 +47,6 @@ static void SekSyncM68k(void) while ((cyc_do = Pico.t.m68c_aim - Pico.t.m68c_cnt) > 0) SekExecM68k(cyc_do); - SekCyclesLeft = 0; - SekTrace(0); pevt_log_m68k_o(EVT_RUN_END); pprof_end(m68k); -- 2.39.5