MIOS: Avoid ppcState global.
This commit is contained in:
parent
ed633476e6
commit
4c349caabd
|
@ -76,10 +76,11 @@ bool Load()
|
||||||
Host_NotifyMapLoaded();
|
Host_NotifyMapLoaded();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto& ppc_state = system.GetPPCState();
|
||||||
const PowerPC::CoreMode core_mode = PowerPC::GetMode();
|
const PowerPC::CoreMode core_mode = PowerPC::GetMode();
|
||||||
PowerPC::SetMode(PowerPC::CoreMode::Interpreter);
|
PowerPC::SetMode(PowerPC::CoreMode::Interpreter);
|
||||||
PowerPC::ppcState.msr.Hex = 0;
|
ppc_state.msr.Hex = 0;
|
||||||
PowerPC::ppcState.pc = 0x3400;
|
ppc_state.pc = 0x3400;
|
||||||
NOTICE_LOG_FMT(IOS, "Loaded MIOS and bootstrapped PPC.");
|
NOTICE_LOG_FMT(IOS, "Loaded MIOS and bootstrapped PPC.");
|
||||||
|
|
||||||
// IOS writes 0 to 0x30f8 before bootstrapping the PPC. Once started, the IPL eventually writes
|
// IOS writes 0 to 0x30f8 before bootstrapping the PPC. Once started, the IPL eventually writes
|
||||||
|
|
Loading…
Reference in New Issue