From: Toni Wilen Date: Sat, 22 Apr 2017 05:22:02 +0000 (+0300) Subject: Fixed unavailable/disabled FPU exception stack frame. X-Git-Tag: 3500~50 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=7caf940c1e5ecda98d7e622267be09c9e0e50e18;p=francis%2Fwinuae.git Fixed unavailable/disabled FPU exception stack frame. --- diff --git a/newcpu.cpp b/newcpu.cpp index d1f7f9d3..7bd2b538 100644 --- a/newcpu.cpp +++ b/newcpu.cpp @@ -2585,7 +2585,7 @@ static void Exception_build_stack_frame_common (uae_u32 oldpc, uae_u32 currpc, u regs.fp_unimp_ins = false; if ((currprefs.cpu_model == 68060 && (currprefs.fpu_model == 0 || (regs.pcr & 2))) || (currprefs.cpu_model == 68040 && currprefs.fpu_model == 0)) { - Exception_build_stack_frame(regs.fp_ea, currpc, currpc, nr, 0x4); + Exception_build_stack_frame(regs.fp_ea, currpc, regs.instruction_pc, nr, 0x4); } else { Exception_build_stack_frame(regs.fp_ea, currpc, regs.mmu_ssw, nr, 0x2); }