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

@ -292,8 +292,8 @@ void RegisterWidget::PopulateTable()
[](u64 value) { PowerPC::SetXER(UReg_XER(value)); });
// FPSCR
AddRegister(22, 5, RegisterType::fpscr, "FPSCR", [] { return PowerPC::ppcState.fpscr; },
[](u64 value) { PowerPC::ppcState.fpscr = value; });
AddRegister(22, 5, RegisterType::fpscr, "FPSCR", [] { return PowerPC::ppcState.fpscr.Hex; },
[](u64 value) { PowerPC::ppcState.fpscr.Hex = value; });
// MSR
AddRegister(23, 5, RegisterType::msr, "MSR", [] { return PowerPC::ppcState.msr.Hex; },