From: kub Date: Fri, 27 Mar 2020 18:27:05 +0000 (+0100) Subject: fix for 68K cycle accounting X-Git-Tag: v2.00~760 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d67848ddfff10484f454499f70ffa9935749fcb;p=picodrive.git fix for 68K cycle accounting --- 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);