Merge pull request #12447 from lioncash/ppc

Core/Debugger/PPCDebugInterface: Remove global system accessor
This commit is contained in:
Admiral H. Curtiss 2023-12-18 23:23:13 +01:00 committed by GitHub
commit ccedd45c11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));
}