Core/Debugger/PPCDebugInterface: Remove global system accessor
We can use the CPUThreadGuard instance to get the active system instance.
This commit is contained in:
parent
0cab6583a9
commit
ca5695aef2
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue