浏览代码

Merged revisions 4138 via svnmerge from
http://svn.freepascal.org/svn/fpc/trunk

........
r4138 | florian | 2006-07-10 20:03:30 +0200 (Mo, 10 Jul 2006) | 2 lines

* amd specific flags are checked against cpu vendor
........

git-svn-id: branches/fixes_2_0@4139 -

florian 19 年之前
父节点
当前提交
c6a9dc58b0
共有 1 个文件被更改,包括 8 次插入5 次删除
  1. 8 5
      rtl/i386/mmx.pp

+ 8 - 5
rtl/i386/mmx.pp

@@ -109,7 +109,8 @@ unit mmx;
          _edx : longint;
          _edx : longint;
 
 
       begin
       begin
-         if cpuid_support then
+         { are there third party cpus supporting amd 3d instructions? }
+         if cpuid_support and (getdevel=10) then
            begin
            begin
               asm
               asm
                  movl $0x80000001,%eax
                  movl $0x80000001,%eax
@@ -129,7 +130,8 @@ unit mmx;
          _edx : longint;
          _edx : longint;
 
 
       begin
       begin
-         if cpuid_support then
+         { are there third party cpus supporting amd dsp instructions? }
+         if cpuid_support and (getdevel=10) then
            begin
            begin
               asm
               asm
                  movl $0x80000001,%eax
                  movl $0x80000001,%eax
@@ -149,7 +151,8 @@ unit mmx;
          _edx : longint;
          _edx : longint;
 
 
       begin
       begin
-         if cpuid_support then
+         { are there third party cpus supporting amd mmx instructions? }
+         if cpuid_support and (getdevel=10) then
            begin
            begin
               asm
               asm
                  movl $0x80000001,%eax
                  movl $0x80000001,%eax
@@ -212,8 +215,8 @@ unit mmx;
     procedure femms;assembler;
     procedure femms;assembler;
 
 
       asm
       asm
-          .byte 0x0f, 0x0e
-{         femms instruction not supported with older as versions }
+        { femms instruction not supported with older as versions }
+        .byte 0x0f, 0x0e
       end;
       end;