From: Julian Seward Date: Sat, 4 Dec 2004 01:45:56 +0000 (+0000) Subject: Set host FPU mode to the default mode expected by VEX generated code. X-Git-Tag: svn/VALGRIND_3_0_0~1139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c5b50284b3fd9dfa029b2b8bb6ebf9d5e041205;p=thirdparty%2Fvalgrind.git Set host FPU mode to the default mode expected by VEX generated code. ToDo: set SSE control word correctly too, and also D flag. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3179 --- diff --git a/coregrind/x86/dispatch.S b/coregrind/x86/dispatch.S index 4cf8e21255..6c5c4e78c1 100644 --- a/coregrind/x86/dispatch.S +++ b/coregrind/x86/dispatch.S @@ -66,6 +66,12 @@ VG_(run_innerloop): /* fetch %EIP into %eax */ movl VG_(instr_ptr_offset), %esi movl (%ebp, %esi, 1), %eax + + /* set host FPU mode to the default mode expected + by VEX-generated code. */ + pushl $0x037F + fldcw 0(%esp) + addl $4, %esp /* fall into main loop */