HW/DSP: Avoid ppcState global.

This commit is contained in:
Admiral H. Curtiss 2023-01-10 06:45:21 +01:00
parent 18d9ec75f1
commit e2f7855b0e
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB

View File

@ -573,7 +573,7 @@ static void Do_ARAM_DMA()
// ARAM -> MRAM
DEBUG_LOG_FMT(DSPINTERFACE, "DMA {:08x} bytes from ARAM {:08x} to MRAM {:08x} PC: {:08x}",
state.aram_dma.Cnt.count, state.aram_dma.ARAddr, state.aram_dma.MMAddr,
PowerPC::ppcState.pc);
system.GetPPCState().pc);
// Outgoing data from ARAM is mirrored every 64MB (verified on real HW)
state.aram_dma.ARAddr &= 0x3ffffff;
@ -622,7 +622,7 @@ static void Do_ARAM_DMA()
// MRAM -> ARAM
DEBUG_LOG_FMT(DSPINTERFACE, "DMA {:08x} bytes from MRAM {:08x} to ARAM {:08x} PC: {:08x}",
state.aram_dma.Cnt.count, state.aram_dma.MMAddr, state.aram_dma.ARAddr,
PowerPC::ppcState.pc);
system.GetPPCState().pc);
// Incoming data into ARAM is mirrored every 64MB (verified on real HW)
state.aram_dma.ARAddr &= 0x3ffffff;