summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
diff options
context:
space:
mode:
authorVampireFlower <monstercatspedup1@gmail.com>2025-11-04 11:41:48 -0500
committerVampireFlower <monstercatspedup1@gmail.com>2025-11-04 11:41:48 -0500
commit294044a02ed1daf38384a80358452b14c60f0232 (patch)
tree94cf6da139f2c637c69d69db0406e9e8fc9bc722 /Source/Core/DolphinQt/Debugger/CodeWidget.cpp
parent40fa9ddaddc264c8fd4fc348aef1c0621de6033b (diff)
Debugger: Ignore bctr when stepping out
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
index 3e4eedf49d..a04f761cee 100644
--- a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
@@ -603,7 +603,7 @@ static bool WillInstructionReturn(Core::System& system, UGeckoInstruction inst)
const auto& ppc_state = system.GetPPCState();
bool counter = (inst.BO_2 >> 2 & 1) != 0 || (CTR(ppc_state) != 0) != ((inst.BO_2 >> 1 & 1) != 0);
bool condition = inst.BO_2 >> 4 != 0 || ppc_state.cr.GetBit(inst.BI_2) == (inst.BO_2 >> 3 & 1);
- bool isBclr = inst.OPCD_7 == 0b010011 && (inst.hex >> 1 & 0b10000) != 0;
+ bool isBclr = inst.OPCD_7 == 0b010011 && inst.XO == 16;
return isBclr && counter && condition && !inst.LK_3;
}