Core/Debugger/PPCDebugInterface: Remove global system accessor

We can use the CPUThreadGuard instance to get the active system instance.
This commit is contained in:
Lioncache 2023-12-18 16:57:48 -05:00
parent 0cab6583a9
commit ca5695aef2
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ u32 PPCDebugInterface::ReadExtraMemory(const Core::CPUThreadGuard& guard, int me
return PowerPC::MMU::HostRead_U32(guard, address); return PowerPC::MMU::HostRead_U32(guard, address);
case 1: case 1:
{ {
auto& dsp = Core::System::GetInstance().GetDSP(); const auto& dsp = guard.GetSystem().GetDSP();
return (dsp.ReadARAM(address) << 24) | (dsp.ReadARAM(address + 1) << 16) | return (dsp.ReadARAM(address) << 24) | (dsp.ReadARAM(address + 1) << 16) |
(dsp.ReadARAM(address + 2) << 8) | (dsp.ReadARAM(address + 3)); (dsp.ReadARAM(address + 2) << 8) | (dsp.ReadARAM(address + 3));
} }