]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fixed unavailable/disabled FPU exception stack frame.
authorToni Wilen <twilen@winuae.net>
Sat, 22 Apr 2017 05:22:02 +0000 (08:22 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 22 Apr 2017 05:22:02 +0000 (08:22 +0300)
newcpu.cpp

index d1f7f9d3c297f8ad5f91cfdaf3de25550e0711b3..7bd2b5384e6caf4493ea8e9ac476b25e9a4463a3 100644 (file)
@@ -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);
                }