mcd, minor optimization for poll detection

This commit is contained in:
kub 2022-10-13 19:25:25 +00:00
parent fdaf9d10bd
commit b074a2b5b6
2 changed files with 11 additions and 3 deletions

View file

@ -345,8 +345,10 @@ void pcd_run_cpus_normal(int m68k_cycles)
if (Pico_mcd->m.m68k_poll_cnt >= 16) {
int s68k_left;
// main CPU is polling, (wake and) run sub only
if (SekIsStoppedS68k())
if (SekIsStoppedS68k()) {
SekSetStopS68k(0);
Pico_mcd->m.s68k_poll_cnt = 0;
}
s68k_left = pcd_sync_s68k(Pico.t.m68c_aim, 1);
Pico.t.m68c_cnt = Pico.t.m68c_aim;