diff options
| author | CrystalGamma <dolphin@crystalgamma.de> | 2018-12-22 16:09:44 +0100 |
|---|---|---|
| committer | CrystalGamma <dolphin@crystalgamma.de> | 2019-03-08 20:42:09 +0100 |
| commit | e3075f38346d53d98d316a71b55b14fa10ac4210 (patch) | |
| tree | a5f815a05fba635acaebf3586229f9a80958529e /Source/Core/DolphinQt/Debugger/CodeWidget.cpp | |
| parent | f6b856d01e95b59f5dfa34bc66e0c86f565d4c8c (diff) | |
PowerPC: Factor out CR helpers into POD class
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeWidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp index a37881e03f..af13edfb3c 100644 --- a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp @@ -416,7 +416,8 @@ static bool WillInstructionReturn(UGeckoInstruction inst) if (inst.hex == 0x4C000064u) return true; bool counter = (inst.BO_2 >> 2 & 1) != 0 || (CTR != 0) != ((inst.BO_2 >> 1 & 1) != 0); - bool condition = inst.BO_2 >> 4 != 0 || PowerPC::GetCRBit(inst.BI_2) == (inst.BO_2 >> 3 & 1); + bool condition = + inst.BO_2 >> 4 != 0 || PowerPC::ppcState.cr.GetBit(inst.BI_2) == (inst.BO_2 >> 3 & 1); bool isBclr = inst.OPCD_7 == 0b010011 && (inst.hex >> 1 & 0b10000) != 0; return isBclr && counter && condition && !inst.LK_3; } |
