From f879b624511436e96466fd0bcd46ba1f44f6f5e5 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 28 Nov 2022 19:15:23 +0200 Subject: [PATCH] Removed unneeded function --- gencpu.cpp | 1 - include/newcpu.h | 1 - newcpu.cpp | 16 ---------------- 3 files changed, 18 deletions(-) diff --git a/gencpu.cpp b/gencpu.cpp index 66e8f4bb..4de001a5 100644 --- a/gencpu.cpp +++ b/gencpu.cpp @@ -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(); diff --git a/include/newcpu.h b/include/newcpu.h index 524d1cd7..0b822727 100644 --- a/include/newcpu.h +++ b/include/newcpu.h @@ -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; diff --git a/newcpu.cpp b/newcpu.cpp index 03ed9b27..3ca351a3 100644 --- a/newcpu.cpp +++ b/newcpu.cpp @@ -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); -- 2.47.3