Browse Source

* patch by Rika to resolves #40531

florian 1 year ago
parent
commit
d287788b57
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/i386/i386.inc

+ 1 - 1
rtl/i386/i386.inc

@@ -2131,7 +2131,7 @@ procedure fpc_cpucodeinit;
               cpuid
               movl %eax,_eax
             end;
-            if _eax>=7 then
+            if (_eax>=7) and (_ecx_cpuid1 and $08000000<>0 {XGETBV support?}) then
               begin
                 asm
                   xorl %ecx,%ecx