This commit is contained in:
Stanislav Shwartsman 2009-10-18 19:24:56 +00:00
parent 0c08841e99
commit 452f9d0422

View File

@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// $Id: fpu_misc.cc,v 1.20 2009-10-14 20:45:29 sshwarts Exp $ // $Id: fpu_misc.cc,v 1.21 2009-10-18 19:24:56 sshwarts Exp $
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// //
// Copyright (c) 2003-2009 Stanislav Shwartsman // Copyright (c) 2003-2009 Stanislav Shwartsman
@ -144,6 +144,9 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::FFREE_STi(bxInstruction_c *i)
#if BX_SUPPORT_FPU #if BX_SUPPORT_FPU
BX_CPU_THIS_PTR prepareFPU(i); BX_CPU_THIS_PTR prepareFPU(i);
BX_CPU_THIS_PTR FPU_update_last_instruction(i); BX_CPU_THIS_PTR FPU_update_last_instruction(i);
clear_C1();
BX_CPU_THIS_PTR the_i387.FPU_settagi(FPU_Tag_Empty, i->rm()); BX_CPU_THIS_PTR the_i387.FPU_settagi(FPU_Tag_Empty, i->rm());
#else #else
BX_INFO(("FFREE_STi: required FPU, configure --enable-fpu")); BX_INFO(("FFREE_STi: required FPU, configure --enable-fpu"));
@ -161,6 +164,9 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::FFREEP_STi(bxInstruction_c *i)
#if BX_SUPPORT_FPU #if BX_SUPPORT_FPU
BX_CPU_THIS_PTR prepareFPU(i); BX_CPU_THIS_PTR prepareFPU(i);
BX_CPU_THIS_PTR FPU_update_last_instruction(i); BX_CPU_THIS_PTR FPU_update_last_instruction(i);
clear_C1();
BX_CPU_THIS_PTR the_i387.FPU_settagi(FPU_Tag_Empty, i->rm()); BX_CPU_THIS_PTR the_i387.FPU_settagi(FPU_Tag_Empty, i->rm());
BX_CPU_THIS_PTR the_i387.FPU_pop(); BX_CPU_THIS_PTR the_i387.FPU_pop();
#else #else