From 8dc138a099f6acbe31ce0c2fc956300ab5b6c8bc Mon Sep 17 00:00:00 2001 From: kub Date: Sun, 16 Feb 2020 08:42:45 +0100 Subject: [PATCH] 32X poll detection fix --- pico/32x/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pico/32x/memory.c b/pico/32x/memory.c index 30d9b577..f772d28d 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 (rd != wr && q->a == a && !CYCLES_GT(cycles,q->cycles+30)) { + if (cpu < 0 && rd != wr && q->a == a && !CYCLES_GT(cycles,q->cycles+30)) { q->d = d; } else { // store write to poll address in fifo -- 2.39.2