From 7daf608b3da8aed2f2ed0408917e61ae97ebee1b Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Tue, 6 Dec 2022 15:56:47 +0200 Subject: [PATCH] Yet another JIT interrupt handling fix --- newcpu.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/newcpu.cpp b/newcpu.cpp index db274878..13de94f6 100644 --- a/newcpu.cpp +++ b/newcpu.cpp @@ -2398,11 +2398,12 @@ static void MakeFromSR_x(int t0trace) regs.ipl[0] = 0; } } else { - if (!currprefs.cachesize && regs.ipl_pin <= regs.intmask && regs.ipl_pin > newimask) { - if (currprefs.cpu_compatible && currprefs.cpu_model < 68020) + if (regs.ipl_pin <= regs.intmask && regs.ipl_pin > newimask) { + if (currprefs.cpu_compatible && currprefs.cpu_model < 68020) { set_special(SPCFLAG_INT); - else + } else { set_special(SPCFLAG_DOINT); + } } } regs.intmask = newimask; @@ -4620,7 +4621,7 @@ static int do_specialties (int cycles) do_copper(); #ifdef JIT - if (currprefs.cachesize) { + if (regs.spcflags & SPCFLAG_END_COMPILE) { unset_special(SPCFLAG_END_COMPILE); } #endif -- 2.47.3