From: notaz Date: Sat, 10 Aug 2013 14:58:23 +0000 (+0300) Subject: minor 68k timing tuning X-Git-Tag: v1.85~2^2~39 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e5b912cf8820efc2c74e8f639a1c29cd4f68b75;p=picodrive.git minor 68k timing tuning --- diff --git a/cpu/fame/famec.c b/cpu/fame/famec.c index 616027c..1aba794 100644 --- a/cpu/fame/famec.c +++ b/cpu/fame/famec.c @@ -929,6 +929,7 @@ famec_Exec: u32 line; m68kcontext.io_cycle_counter = cycles_needed; cycles_needed = 0; + if (m68kcontext.io_cycle_counter <= 0) goto famec_End; line=interrupt_chk__(); if (line>0) { diff --git a/pico/32x/memory.c b/pico/32x/memory.c index fd6ff45..11b0462 100644 --- a/pico/32x/memory.c +++ b/pico/32x/memory.c @@ -198,7 +198,7 @@ static u32 p32x_reg_read16(u32 a) Pico32x.comm_dirty_sh2 &= ~comreg; else if (m68k_poll_detect(a, cycles, P32XF_68KCPOLL)) { SekSetStop(1); - SekEndTimeslice(16); + SekEndRun(16); } dr2 = SekDar(2); goto out; diff --git a/pico/pico_cmn.c b/pico/pico_cmn.c index 3383b13..2b558c1 100644 --- a/pico/pico_cmn.c +++ b/pico/pico_cmn.c @@ -46,7 +46,7 @@ static __inline void SekRunM68k(int cyc) #elif defined(EMU_M68K) SekCycleCnt+=m68k_execute(cyc_do); #elif defined(EMU_F68K) - SekCycleCnt+=fm68k_emulate(cyc_do+1, 0, 0); + SekCycleCnt+=fm68k_emulate(cyc_do, 0, 0); #endif out: