From: Julian Seward Date: Fri, 25 Mar 2005 22:39:28 +0000 (+0000) Subject: Fix bug? in do_put_x87 which would have resulting in FLDENV setting to X-Git-Tag: svn/VALGRIND_3_0_1^2~244 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=065bb0ed9c3a8f5afcd8c25c7c4932804127eed8;p=thirdparty%2Fvalgrind.git Fix bug? in do_put_x87 which would have resulting in FLDENV setting to zero registers which the to-be-loaded tag word indicates are empty. git-svn-id: svn://svn.valgrind.org/vex/trunk@1090 --- diff --git a/VEX/priv/guest-x86/ghelpers.c b/VEX/priv/guest-x86/ghelpers.c index 3e249d979a..3e0d5470c6 100644 --- a/VEX/priv/guest-x86/ghelpers.c +++ b/VEX/priv/guest-x86/ghelpers.c @@ -1709,7 +1709,7 @@ VexEmWarn do_put_x87 ( Bool moveRegs, safer to say it does. If we don't, memcheck could get out of sync, in that it thinks all FP registers are defined by this helper, but in reality some have not been updated. */ - if (True || moveRegs) + if (moveRegs) vexRegs[preg] = 0.0; vexTags[preg] = 0; } else {