diff options
| author | Lioncache <mai.iam2048@gmail.com> | 2023-12-18 16:57:48 -0500 |
|---|---|---|
| committer | Lioncache <mai.iam2048@gmail.com> | 2023-12-18 16:57:50 -0500 |
| commit | ca5695aef23745aaa4c5b7852e344db9e32b015e (patch) | |
| tree | be3163d1419b0be2b57c6cc7c42cbe279a63a781 /Source | |
| parent | 0cab6583a9d53ab39ce85bfaf7801c69777de83d (diff) | |
Core/Debugger/PPCDebugInterface: Remove global system accessor
We can use the CPUThreadGuard instance to get the active system instance.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/Debugger/PPCDebugInterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |
