mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
PowerPC: Make the PowerPCState's fpscr member variable a UReg_FPSCR instance
Gets rid of the need to cast the actual member to access information without bit shifts and masking.
This commit is contained in:
@ -80,7 +80,7 @@ u32 GetSpecialRegValue(int reg)
|
||||
case 4:
|
||||
return PowerPC::GetXER().Hex;
|
||||
case 5:
|
||||
return PowerPC::ppcState.fpscr;
|
||||
return PowerPC::ppcState.fpscr.Hex;
|
||||
case 6:
|
||||
return PowerPC::ppcState.msr.Hex;
|
||||
case 7:
|
||||
@ -124,7 +124,7 @@ void SetSpecialRegValue(int reg, u32 value)
|
||||
PowerPC::SetXER(UReg_XER(value));
|
||||
break;
|
||||
case 5:
|
||||
PowerPC::ppcState.fpscr = value;
|
||||
PowerPC::ppcState.fpscr.Hex = value;
|
||||
break;
|
||||
case 6:
|
||||
PowerPC::ppcState.msr.Hex = value;
|
||||
|
Reference in New Issue
Block a user