mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-11 03:56:02 +00: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:
parent
c3d88a622d
commit
cb5926c1ca
5 changed files with 11 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue