]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Yet another JIT interrupt handling fix
authorToni Wilen <twilen@winuae.net>
Tue, 6 Dec 2022 13:56:47 +0000 (15:56 +0200)
committerToni Wilen <twilen@winuae.net>
Tue, 6 Dec 2022 13:56:47 +0000 (15:56 +0200)
newcpu.cpp

index db27487856f9688fcb75b080ce2579c3c671e2e0..13de94f62bc6e4331d59a4640fe99258248d4550 100644 (file)
@@ -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