From ffcf107dd2686f27a7e27e5285b13334ba9955fb Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 5 May 2018 17:02:58 -0400 Subject: PowerPC: Make the PowerPCState's msr member variable a UReg_MSR instance Gets rid of the need to construct UReg_MSR values around the the actual member in order to query information from it (without using shifts and masks). This makes it more concise in some areas, while helping with readability in some other places (such as copying the ILE bit to the LE bit in the exception checking functions). --- Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp') diff --git a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp index 93720cf896..bdec322810 100644 --- a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp @@ -296,8 +296,8 @@ void RegisterWidget::PopulateTable() [](u64 value) { PowerPC::ppcState.fpscr = value; }); // MSR - AddRegister(23, 5, RegisterType::msr, "MSR", [] { return PowerPC::ppcState.msr; }, - [](u64 value) { PowerPC::ppcState.msr = value; }); + AddRegister(23, 5, RegisterType::msr, "MSR", [] { return PowerPC::ppcState.msr.Hex; }, + [](u64 value) { PowerPC::ppcState.msr.Hex = value; }); // SRR 0-1 AddRegister(24, 5, RegisterType::srr, "SRR0", [] { return PowerPC::ppcState.spr[SPR_SRR0]; }, -- cgit v1.2.3