mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Core: Check if msr.DR or msr.IR are valid at ApplyStartupPatches
This commit is contained in:
@ -293,6 +293,17 @@ static void ApplyStartupPatches(Core::System& system)
|
|||||||
{
|
{
|
||||||
ASSERT(Core::IsCPUThread());
|
ASSERT(Core::IsCPUThread());
|
||||||
Core::CPUThreadGuard guard(system);
|
Core::CPUThreadGuard guard(system);
|
||||||
|
|
||||||
|
const auto& ppc_state = system.GetPPCState();
|
||||||
|
if (!ppc_state.msr.DR || !ppc_state.msr.IR)
|
||||||
|
{
|
||||||
|
DEBUG_LOG_FMT(ACTIONREPLAY,
|
||||||
|
"Need to retry later. CPU configuration is currently incorrect. PC = {:#010x}, "
|
||||||
|
"MSR = {:#010x}",
|
||||||
|
ppc_state.pc, ppc_state.msr.Hex);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ApplyPatches(guard, s_on_frame);
|
ApplyPatches(guard, s_on_frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user