Skip to content

Commit

Permalink
HW/DSP: Avoid ppcState global.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiralCurtiss committed Jan 27, 2023
1 parent 18d9ec7 commit e2f7855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/HW/DSP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e2f7855

Please sign in to comment.