From: Stanislav S. <ssh...@us...> - 2004-01-31 15:13:24
|
Update of /cvsroot/bochs/bochs/cpu In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12584/cpu Modified Files: fpu.cc Log Message: fix bug Index: fpu.cc =================================================================== RCS file: /cvsroot/bochs/bochs/cpu/fpu.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- fpu.cc 31 Jan 2004 13:43:26 -0000 1.7 +++ fpu.cc 31 Jan 2004 15:11:41 -0000 1.8 @@ -41,15 +41,18 @@ void BX_CPU_C::FPU_check_pending_exceptions(void) { - if (BX_CPU_THIS_PTR cr0.ne == 0) - { - // MSDOS compatibility external interrupt (IRQ13) - BX_INFO (("math_abort: MSDOS compatibility FPU exception")); - DEV_pic_raise_irq(13); - } - else + if(FPU_PARTIAL_STATUS & FPU_SW_SUMMARY) { - exception(BX_MF_EXCEPTION, 0, 0); + if (BX_CPU_THIS_PTR cr0.ne == 0) + { + // MSDOS compatibility external interrupt (IRQ13) + BX_INFO (("math_abort: MSDOS compatibility FPU exception")); + DEV_pic_raise_irq(13); + } + else + { + exception(BX_MF_EXCEPTION, 0, 0); + } } } #endif |