diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-06-12 13:22:49 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-06-12 14:15:50 -0400 |
| commit | 0049ef3a2a879d785872b02c87ef8fc740974a63 (patch) | |
| tree | 8b67ed7a9700d92281e1c051fd0241bc3eeb2497 /Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp | |
| parent | 8a3679bebc9bcdbd0adb53075697b01cf8a1cb42 (diff) | |
Gekko: Centralize bitmasking of the FPSCR within UReg_FPSCR
Rather than introduce this handling in every system instruction that modifies
the FPSCR directly, we can instead just handle it within the data structure
instead, which avoids duplicating mask handling across instructions.
This also allows handling proper masking from the debugger register
windows themselves without duplicating masking behavior there either.
Diffstat (limited to 'Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp index 98db9f671f..2a2fff7aa2 100644 --- a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp @@ -290,7 +290,7 @@ void RegisterWidget::PopulateTable() // FPSCR AddRegister(22, 5, RegisterType::fpscr, "FPSCR", [] { return PowerPC::ppcState.fpscr.Hex; }, - [](u64 value) { PowerPC::ppcState.fpscr.Hex = value; }); + [](u64 value) { PowerPC::ppcState.fpscr = static_cast<u32>(value); }); // MSR AddRegister(23, 5, RegisterType::msr, "MSR", [] { return PowerPC::ppcState.msr.Hex; }, |
