From ca5695aef23745aaa4c5b7852e344db9e32b015e Mon Sep 17 00:00:00 2001 From: Lioncache Date: Mon, 18 Dec 2023 16:57:48 -0500 Subject: [PATCH] Core/Debugger/PPCDebugInterface: Remove global system accessor We can use the CPUThreadGuard instance to get the active system instance. --- Source/Core/Core/Debugger/PPCDebugInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/Debugger/PPCDebugInterface.cpp b/Source/Core/Core/Debugger/PPCDebugInterface.cpp index 094adff4ea..d6afc64e69 100644 --- a/Source/Core/Core/Debugger/PPCDebugInterface.cpp +++ b/Source/Core/Core/Debugger/PPCDebugInterface.cpp @@ -333,7 +333,7 @@ u32 PPCDebugInterface::ReadExtraMemory(const Core::CPUThreadGuard& guard, int me return PowerPC::MMU::HostRead_U32(guard, address); case 1: { - auto& dsp = Core::System::GetInstance().GetDSP(); + const auto& dsp = guard.GetSystem().GetDSP(); return (dsp.ReadARAM(address) << 24) | (dsp.ReadARAM(address + 1) << 16) | (dsp.ReadARAM(address + 2) << 8) | (dsp.ReadARAM(address + 3)); }