mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Merge pull request #12447 from lioncash/ppc
Core/Debugger/PPCDebugInterface: Remove global system accessor
This commit is contained in:
commit
ccedd45c11
@ -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
Block a user