]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Set host FPU mode to the default mode expected by VEX generated code.
authorJulian Seward <jseward@acm.org>
Sat, 4 Dec 2004 01:45:56 +0000 (01:45 +0000)
committerJulian Seward <jseward@acm.org>
Sat, 4 Dec 2004 01:45:56 +0000 (01:45 +0000)
ToDo: set SSE control word correctly too, and also D flag.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3179

coregrind/x86/dispatch.S

index 4cf8e2125588c912af4f92d402f5128b1824ed9d..6c5c4e78c1df03c5d82a35e7713ad3d330f8f0f8 100644 (file)
@@ -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 */