summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-01-10 19:03:42 +0100
committerAdmiral H. Curtiss <pikachu025@gmail.com>2023-01-27 15:22:48 +0100
commit4c349caabd644befaa4b58c866d5e482cfaa990c (patch)
tree7a8a52444c792eb5d45c8adcd06ed5bd5cda3b6d /Source
parented633476e601e8b8e1b3d7ca7c4c040cda5e246a (diff)
MIOS: Avoid ppcState global.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/IOS/MIOS.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/Core/IOS/MIOS.cpp b/Source/Core/Core/IOS/MIOS.cpp
index d4a9dd1edf..f1062b2f0b 100644
--- a/Source/Core/Core/IOS/MIOS.cpp
+++ b/Source/Core/Core/IOS/MIOS.cpp
@@ -76,10 +76,11 @@ bool Load()
Host_NotifyMapLoaded();
}
+ auto& ppc_state = system.GetPPCState();
const PowerPC::CoreMode core_mode = PowerPC::GetMode();
PowerPC::SetMode(PowerPC::CoreMode::Interpreter);
- PowerPC::ppcState.msr.Hex = 0;
- PowerPC::ppcState.pc = 0x3400;
+ ppc_state.msr.Hex = 0;
+ ppc_state.pc = 0x3400;
NOTICE_LOG_FMT(IOS, "Loaded MIOS and bootstrapped PPC.");
// IOS writes 0 to 0x30f8 before bootstrapping the PPC. Once started, the IPL eventually writes