HW/Memmap: Avoid ppcState global.

This commit is contained in:
Admiral H. Curtiss 2023-01-10 06:55:12 +01:00
parent 2bf72de43d
commit 884130f95c
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB

View File

@ -482,8 +482,9 @@ u8* MemoryManager::GetPointer(u32 address) const
return m_exram + (address & GetExRamMask()); return m_exram + (address & GetExRamMask());
} }
PanicAlertFmt("Unknown Pointer {:#010x} PC {:#010x} LR {:#010x}", address, PowerPC::ppcState.pc, auto& ppc_state = Core::System::GetInstance().GetPPCState();
LR(PowerPC::ppcState)); PanicAlertFmt("Unknown Pointer {:#010x} PC {:#010x} LR {:#010x}", address, ppc_state.pc,
LR(ppc_state));
return nullptr; return nullptr;
} }