mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
HW/DSP: Avoid ppcState global.
This commit is contained in:
parent
18d9ec75f1
commit
e2f7855b0e
@ -573,7 +573,7 @@ static void Do_ARAM_DMA()
|
|||||||
// ARAM -> MRAM
|
// ARAM -> MRAM
|
||||||
DEBUG_LOG_FMT(DSPINTERFACE, "DMA {:08x} bytes from ARAM {:08x} to MRAM {:08x} PC: {:08x}",
|
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,
|
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)
|
// Outgoing data from ARAM is mirrored every 64MB (verified on real HW)
|
||||||
state.aram_dma.ARAddr &= 0x3ffffff;
|
state.aram_dma.ARAddr &= 0x3ffffff;
|
||||||
@ -622,7 +622,7 @@ static void Do_ARAM_DMA()
|
|||||||
// MRAM -> ARAM
|
// MRAM -> ARAM
|
||||||
DEBUG_LOG_FMT(DSPINTERFACE, "DMA {:08x} bytes from MRAM {:08x} to ARAM {:08x} PC: {:08x}",
|
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,
|
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)
|
// Incoming data into ARAM is mirrored every 64MB (verified on real HW)
|
||||||
state.aram_dma.ARAddr &= 0x3ffffff;
|
state.aram_dma.ARAddr &= 0x3ffffff;
|
||||||
|
Loading…
Reference in New Issue
Block a user