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:
Lioncash
2018-05-06 18:22:19 -04:00
parent c3d88a622d
commit cb5926c1ca
5 changed files with 11 additions and 11 deletions

View File

@ -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;