Преглед изворни кода

Merge pull request #11063 from liamwhite/oops

arm_interface: correct breakpoint rewind condition
Morph пре 3 година
родитељ
комит
8a87a41f2d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/core/arm/arm_interface.cpp

+ 1 - 1
src/core/arm/arm_interface.cpp

@@ -185,7 +185,7 @@ void ARM_Interface::Run() {
         // Notify the debugger and go to sleep if a breakpoint was hit,
         // or if the thread is unable to continue for any reason.
         if (True(hr & HaltReason::InstructionBreakpoint) || True(hr & HaltReason::PrefetchAbort)) {
-            if (!True(hr & HaltReason::InstructionBreakpoint)) {
+            if (!True(hr & HaltReason::PrefetchAbort)) {
                 RewindBreakpointInstruction();
             }
             if (system.DebuggerEnabled()) {