Browse Source

* reset fpu after sse detection

git-svn-id: trunk@2626 -
florian 19 years ago
parent
commit
0a21ae4b05
1 changed files with 5 additions and 0 deletions
  1. 5 0
      rtl/win32/system.pp

+ 5 - 0
rtl/win32/system.pp

@@ -957,6 +957,11 @@ procedure fpc_cpucodeinit;
     sse_check:=false;
     sse_check:=false;
     has_sse_support:=sse_support;
     has_sse_support:=sse_support;
     has_mmx_support:=mmx_support;
     has_mmx_support:=mmx_support;
+    { reset FPU }
+    asm
+      fninit
+      fldcw   fpucw
+    end;
     setup_fastmove;
     setup_fastmove;
   end;
   end;