This commit is contained in:
Stanislav Shwartsman 2010-02-08 14:28:20 +00:00
parent 94a00978f7
commit 4882aa035a

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: fpu_misc.cc,v 1.22 2010-02-06 20:52:27 sshwarts Exp $
// $Id: fpu_misc.cc,v 1.23 2010-02-08 14:28:20 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2003-2009 Stanislav Shwartsman
@ -58,11 +58,13 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::FXCH_STi(bxInstruction_c *i)
if (sti_tag == FPU_Tag_Empty)
sti_reg = floatx80_default_nan;
}
else {
return;
}
}
else {
BX_WRITE_FPU_REG(st0_reg, i->rm());
BX_WRITE_FPU_REG(sti_reg, 0);
}
BX_WRITE_FPU_REG(st0_reg, i->rm());
BX_WRITE_FPU_REG(sti_reg, 0);
#else
BX_INFO(("FXCH_STi: required FPU, configure --enable-fpu"));
#endif