浏览代码

Avoid trying to use invalid instruction exception if Test8087 is below 2, as older CPU ignore simply invalid instructions

git-svn-id: trunk@36298 -
pierre 8 年之前
父节点
当前提交
e092f00843
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      rtl/msdos/system.pp

+ 2 - 0
rtl/msdos/system.pp

@@ -167,6 +167,8 @@ Procedure SysInitFPU;
       fldcw   localfpucw
       fwait
     end;
+    if Test8087 < 2 then
+      exit;
     asm
       push es
       push ds