From 144aa2f5b17420823efee0eeebe0876ace13557c Mon Sep 17 00:00:00 2001 From: svc64 Date: Sat, 7 Oct 2023 15:11:17 +0300 Subject: [PATCH] Fix stepping with JIT --- src/ARMeilleure/Instructions/NativeInterface.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/ARMeilleure/Instructions/NativeInterface.cs b/src/ARMeilleure/Instructions/NativeInterface.cs index 982d6915fd..d8b8a02bf6 100644 --- a/src/ARMeilleure/Instructions/NativeInterface.cs +++ b/src/ARMeilleure/Instructions/NativeInterface.cs @@ -176,14 +176,12 @@ namespace ARMeilleure.Instructions Statistics.PauseTimer(); ExecutionContext context = GetContext(); - - // If debugging, we'll handle interrupts outside - if (Optimizations.EnableDebugging && context.Interrupted) - { - return false; - } - context.CheckInterrupt(); + // If debugging, we'll handle interrupts outside + if (!Optimizations.EnableDebugging) + { + context.CheckInterrupt(); + } Statistics.ResumeTimer();