summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-05-06 18:22:19 -0400
committerLioncash <mathew1800@gmail.com>2018-05-06 18:46:52 -0400
commitcb5926c1ca884fb9fb1256ee0bf735e1dfe88e72 (patch)
tree44af5cf8311c7c88a0dbc5249548073fbea419ee /Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp
parentc3d88a622db039b0e9396f6af08cb8b6cbf95b76 (diff)
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.
Diffstat (limited to 'Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp')
-rw-r--r--Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp
index bdec322810..57d0487c07 100644
--- a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp
+++ b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp
@@ -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; },