From e2f7855b0ed167d48a9731ab4dad9a4e8d35357e Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Tue, 10 Jan 2023 06:45:21 +0100 Subject: [PATCH] HW/DSP: Avoid ppcState global. --- Source/Core/Core/HW/DSP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/HW/DSP.cpp b/Source/Core/Core/HW/DSP.cpp index c655ffc95a..993a32d3a2 100644 --- a/Source/Core/Core/HW/DSP.cpp +++ b/Source/Core/Core/HW/DSP.cpp @@ -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;