From: kub Date: Tue, 3 Mar 2020 19:34:11 +0000 (+0100) Subject: 32x, small improvement for poll detector X-Git-Tag: v2.00~769 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1d0377e480f3603b3e3c8c3a447ab5c369e55f4;p=picodrive.git 32x, small improvement for poll detector --- diff --git a/pico/32x/memory.c b/pico/32x/memory.c index f772d28d..f4f0a18b 100644 --- a/pico/32x/memory.c +++ b/pico/32x/memory.c @@ -239,7 +239,7 @@ static NOINLINE void sh2_poll_write(u32 a, u32 d, unsigned int cycles, SH2 *sh2) // NB this can take an eternity on m68k: mov.b , needs // 28 m68k-cycles (~80 sh2-cycles) to complete (observed in Metal Head) q = &fifo[(sh2_poll_wr[hix]-1) % PFIFO_SZ]; - if (cpu < 0 && rd != wr && q->a == a && !CYCLES_GT(cycles,q->cycles+30)) { + if (rd != wr && q->a == a && !CYCLES_GT(cycles,q->cycles + (cpu<0 ? 30:4))) { q->d = d; } else { // store write to poll address in fifo