Reverting back last commit from Kevin.
Both Intel and AMD docs say that fldenv should fault on pending exceptions. (#MF If an unmasked x87 floating-point exception was pending)
This commit is contained in:
parent
2b45a94893
commit
356cb066d4
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: fpu.cc,v 1.17 2006-01-28 20:52:08 kevinlawton Exp $
|
||||
// $Id: fpu.cc,v 1.18 2006-01-28 21:31:20 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2003 Stanislav Shwartsman
|
||||
@ -443,8 +443,8 @@ void BX_CPU_C::FNINIT(bxInstruction_c *i)
|
||||
void BX_CPU_C::FLDENV(bxInstruction_c *i)
|
||||
{
|
||||
#if BX_SUPPORT_FPU
|
||||
fpu_load_environment(i);
|
||||
BX_CPU_THIS_PTR prepareFPU(i, CHECK_PENDING_EXCEPTIONS, !UPDATE_LAST_OPCODE);
|
||||
fpu_load_environment(i);
|
||||
#else
|
||||
BX_INFO(("FLDENV: required FPU, configure --enable-fpu"));
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user