mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
32x, small improvement for poll detector
This commit is contained in:
parent
b6bdccb747
commit
c1d0377e48
1 changed files with 1 additions and 1 deletions
|
@ -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 <addr1.l>,<addr2.l> needs
|
// NB this can take an eternity on m68k: mov.b <addr1.l>,<addr2.l> needs
|
||||||
// 28 m68k-cycles (~80 sh2-cycles) to complete (observed in Metal Head)
|
// 28 m68k-cycles (~80 sh2-cycles) to complete (observed in Metal Head)
|
||||||
q = &fifo[(sh2_poll_wr[hix]-1) % PFIFO_SZ];
|
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;
|
q->d = d;
|
||||||
} else {
|
} else {
|
||||||
// store write to poll address in fifo
|
// store write to poll address in fifo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue