mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sh2 drc: bugfix in block management
This commit is contained in:
parent
a6c0ab7d99
commit
6b9ded20a0
2 changed files with 3 additions and 5 deletions
|
@ -513,9 +513,9 @@ static void p32x_reg_write8(u32 a, u32 d)
|
|||
case 0x2e:
|
||||
case 0x2f:
|
||||
if (REG8IN16(r, a) != d) {
|
||||
int cycles = SekCyclesDone();
|
||||
unsigned int cycles = SekCyclesDone();
|
||||
|
||||
if (cycles - (int)msh2.m68krcycles_done > 30)
|
||||
if (CYCLES_GT(cycles - msh2.m68krcycles_done, 64))
|
||||
p32x_sync_sh2s(cycles);
|
||||
|
||||
REG8IN16(r, a) = d;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue