diff options
author | marco <marco@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2020-12-08 20:34:55 +0000 |
---|---|---|
committer | marco <marco@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2020-12-08 20:34:55 +0000 |
commit | 3b8bdd4b675c839ababb8235c04e2c2beec16073 (patch) | |
tree | 3c68e7b590e9f24fb39b82802d39ba64676bc2fc /rtl | |
parent | e216d8fa35b0aa3f3654acd908842d447dc360db (diff) | |
download | fpc-3b8bdd4b675c839ababb8235c04e2c2beec16073.tar.gz |
# revisions: 45848
git-svn-id: https://svn.freepascal.org/svn/fpc/branches/fixes_3_2@47727 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl')
-rw-r--r-- | rtl/i386/mmx.pp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rtl/i386/mmx.pp b/rtl/i386/mmx.pp index 46e18ada75..70b358f397 100644 --- a/rtl/i386/mmx.pp +++ b/rtl/i386/mmx.pp @@ -61,6 +61,7 @@ unit mmx; { return base type of processor: 0 - is Unknown, 10 - is AMD (AuthenticAMD), } { 20 - is Intel (GenuineIntel) } + { 30 - is Hygon (HygonGenuine) } function getdevel:byte; var @@ -80,6 +81,7 @@ unit mmx; end; if ((_ebx=$68747541) and (_ecx=$444D4163) and (_edx=$69746E65)) then getdevel:=10; if ((_ebx=$756E6547) and (_ecx=$6C65746E) and (_edx=$49656E69)) then getdevel:=20; + if ((_ebx=$6f677948) and (_ecx=$656e6975) and (_edx=$6e65476e)) then getdevel:=30; end end; @@ -114,7 +116,7 @@ unit mmx; begin { are there third party cpus supporting amd 3d instructions? } - if cpuid_support and (getdevel=10) then + if cpuid_support and ((getdevel=10) or (getdevel=30)) then begin asm pushl %ebx @@ -137,7 +139,7 @@ unit mmx; begin { are there third party cpus supporting amd dsp instructions? } - if cpuid_support and (getdevel=10) then + if cpuid_support and ((getdevel=10) or (getdevel=30)) then begin asm pushl %ebx @@ -160,7 +162,7 @@ unit mmx; begin { are there third party cpus supporting amd mmx instructions? } - if cpuid_support and (getdevel=10) then + if cpuid_support and ((getdevel=10) or (getdevel=30)) then begin asm pushl %ebx |