Core: Check if msr.DR or msr.IR are valid at ApplyStartupPatches
This commit is contained in:
parent
84d28a4272
commit
4499718368
|
@ -293,6 +293,17 @@ static void ApplyStartupPatches(Core::System& system)
|
|||
{
|
||||
ASSERT(Core::IsCPUThread());
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue