Gekko: Make UReg_MSR's single-argument constructor explicit

Prevents implicit construction of MSR instances from integral values.
This is beneficial, considering MSR values have an intended
representation while a regular magic value doesn't. So make these
conversions required to be explicit.
This commit is contained in:
Lioncash
2018-05-05 17:51:34 -04:00
parent ffcf107dd2
commit 0043b77ccd
3 changed files with 3 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ static void ResetRegisters()
SystemTimers::TimeBaseSet();
// MSR should be 0x40, but we don't emulate BS1, so it would never be turned off :}
ppcState.msr = 0;
ppcState.msr.Hex = 0;
rDEC = 0xFFFFFFFF;
SystemTimers::DecrementerSet();
}