mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 23:29:44 -06:00
PowerPC: Make the PowerPCState's msr member variable a UReg_MSR instance
Gets rid of the need to construct UReg_MSR values around the the actual member in order to query information from it (without using shifts and masks). This makes it more concise in some areas, while helping with readability in some other places (such as copying the ILE bit to the LE bit in the exception checking functions).
This commit is contained in:
@ -284,7 +284,7 @@ bool Kernel::BootstrapPPC(const std::string& boot_content_path)
|
||||
// NAND titles start with address translation off at 0x3400 (via the PPC bootstub)
|
||||
// The state of other CPU registers (like the BAT registers) doesn't matter much
|
||||
// because the realmode code at 0x3400 initializes everything itself anyway.
|
||||
MSR = 0;
|
||||
MSR.Hex = 0;
|
||||
PC = 0x3400;
|
||||
|
||||
return true;
|
||||
|
@ -65,7 +65,7 @@ bool Load()
|
||||
|
||||
const PowerPC::CoreMode core_mode = PowerPC::GetMode();
|
||||
PowerPC::SetMode(PowerPC::CoreMode::Interpreter);
|
||||
MSR = 0;
|
||||
MSR.Hex = 0;
|
||||
PC = 0x3400;
|
||||
NOTICE_LOG(IOS, "Loaded MIOS and bootstrapped PPC.");
|
||||
|
||||
|
Reference in New Issue
Block a user