]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Removed unneeded function
authorToni Wilen <twilen@winuae.net>
Mon, 28 Nov 2022 17:15:23 +0000 (19:15 +0200)
committerToni Wilen <twilen@winuae.net>
Mon, 28 Nov 2022 17:15:23 +0000 (19:15 +0200)
gencpu.cpp
include/newcpu.h
newcpu.cpp

index 66e8f4bb9af5cdb6a39a91d6df54ded7275ae3d2..4de001a551eb8fd1a3db50f827daaa207b97ccba 100644 (file)
@@ -7168,7 +7168,6 @@ static void gen_opcode (unsigned int opcode)
                        out("oldsr = newsr;\n");
                        makefromsr_t0();
                        out("}\n");
-                       out("MakeFromSR_intmask(regs.sr, newsr);\n");
                    out("regs.sr = newsr;\n");
                        addcycles_ce020 (4);
                        makefromsr_t0();
index 524d1cd78668ccff89b08b37ddf8375b5e44a1bd..0b82272754f31eb457fa60db36ba016e5d253d09 100644 (file)
@@ -690,7 +690,6 @@ extern void REGPARAM3 MakeSR (void) REGPARAM;
 extern void REGPARAM3 MakeFromSR(void) REGPARAM;
 extern void REGPARAM3 MakeFromSR_T0(void) REGPARAM;
 extern void REGPARAM3 MakeFromSR_STOP(void) REGPARAM;
-extern void REGPARAM3 MakeFromSR_intmask(uae_u16 oldsr, uae_u16 newsr) REGPARAM;
 extern void REGPARAM3 Exception (int) REGPARAM;
 extern void REGPARAM3 Exception_cpu(int) REGPARAM;
 extern void REGPARAM3 Exception_cpu_oldpc(int, uaecptr) REGPARAM;
index 03ed9b277a2881686e9b3f9671616710dbaed5ba..3ca351a3e0e1869e6ced5cbf3cf69b288c324c1e 100644 (file)
@@ -2480,22 +2480,6 @@ void REGPARAM2 MakeFromSR_STOP(void)
        MakeFromSR_x(-1);
 }
 
-void REGPARAM2 MakeFromSR_intmask(uae_u16 oldsr, uae_u16 newsr)
-{
-#if 0
-       int oldlvl = (oldsr >> 8) & 7;
-       int newlvl = (newsr >> 8) & 7;
-       int ilvl = intlev();
-
-       // interrupt mask lowered and allows new interrupt to start?
-       if (newlvl < oldlvl && ilvl > 0 && ilvl > newlvl && ilvl <= oldlvl) {
-               if (currprefs.cpu_model >= 68020) {
-                       unset_special(SPCFLAG_INT);
-               }
-       }
-#endif
-}
-
 static bool internalexception(int nr)
 {
        return nr == 5 || nr == 6 || nr == 7 || (nr >= 32 && nr <= 47);