From 7caf940c1e5ecda98d7e622267be09c9e0e50e18 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 22 Apr 2017 08:22:02 +0300 Subject: [PATCH] Fixed unavailable/disabled FPU exception stack frame. --- newcpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.3