mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-26 11:11:48 +01:00
[Core/CD] fixed regression in SUB-CPU synchronization with CDC DMA introduced by da8e4e547a
(fixes freezes in Ultraverse Prime and probably other games)
This commit is contained in:
parent
e8a6086c89
commit
3397941b60
@ -444,8 +444,11 @@ void cdc_dma_update(unsigned int cycles)
|
||||
/* SUB-CPU idle on register $04 polling ? */
|
||||
if (s68k.stopped & (1<<0x04))
|
||||
{
|
||||
/* sync SUB-CPU with CDC DMA */
|
||||
/* sync SUB-CPU with CDC DMA (only if not already ahead) */
|
||||
if (s68k.cycles < cdc.cycles[0])
|
||||
{
|
||||
s68k.cycles = cdc.cycles[0];
|
||||
}
|
||||
|
||||
/* restart SUB-CPU */
|
||||
s68k.stopped = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user