From: Toni Wilen Date: Sat, 14 May 2016 15:57:34 +0000 (+0300) Subject: Allow also ROM in SSP is out of bounds test. X-Git-Tag: 3300~35 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=c1a1d0e2a6d8306e1b971af5773336b5e19135d1;p=francis%2Fwinuae.git Allow also ROM in SSP is out of bounds test. --- diff --git a/newcpu.cpp b/newcpu.cpp index 7de401c9..ffe91232 100644 --- a/newcpu.cpp +++ b/newcpu.cpp @@ -2713,8 +2713,10 @@ static void Exception_normal (int nr) } if (!currprefs.cpu_compatible) { - addrbank *ab = &get_mem_bank(m68k_areg(regs, 7)); - if (!ab || !(ab->flags & ABFLAG_RAM)) { + addrbank *ab = &get_mem_bank(m68k_areg(regs, 7) - 4); + // Not plain RAM check because some CPU type tests that + // don't need to return set stack to ROM.. + if (!ab || ab == &dummy_bank || (ab->flags & ABFLAG_IO)) { cpu_halt(CPU_HALT_SSP_IN_NON_EXISTING_ADDRESS); return; }