소스 검색

* reset fpu after sse detection

git-svn-id: trunk@2626 -
florian 19 년 전
부모
커밋
0a21ae4b05
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      rtl/win32/system.pp

+ 5 - 0
rtl/win32/system.pp

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