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/DolphinWX/Debugger/RegisterView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/DolphinWX/Debugger/RegisterView.cpp') diff --git a/Source/Core/DolphinWX/Debugger/RegisterView.cpp b/Source/Core/DolphinWX/Debugger/RegisterView.cpp index 12faa79837..ff4c916328 100644 --- a/Source/Core/DolphinWX/Debugger/RegisterView.cpp +++ b/Source/Core/DolphinWX/Debugger/RegisterView.cpp @@ -82,7 +82,7 @@ u32 GetSpecialRegValue(int reg) case 5: return PowerPC::ppcState.fpscr; case 6: - return PowerPC::ppcState.msr; + return PowerPC::ppcState.msr.Hex; case 7: return PowerPC::ppcState.spr[SPR_SRR0]; case 8: @@ -127,7 +127,7 @@ void SetSpecialRegValue(int reg, u32 value) PowerPC::ppcState.fpscr = value; break; case 6: - PowerPC::ppcState.msr = value; + PowerPC::ppcState.msr.Hex = value; break; case 7: PowerPC::ppcState.spr[SPR_SRR0] = value; -- cgit v1.2.3