summaryrefslogtreecommitdiff
path: root/erts/lib_src/common
diff options
context:
space:
mode:
authorhygonsoc <hygonsoc@gmail.com>2019-05-14 16:43:55 +0800
committerhygonsoc <hygonsoc@gmail.com>2019-05-14 16:43:55 +0800
commitb4592035dd987e3a615c1219a47988ed51e8e6e5 (patch)
treeedb3a424223d98ac150b44a425a4cf4dd3353a64 /erts/lib_src/common
parentc6d5af1054f8d555a69111f29b59d5485ef8e48f (diff)
downloaderlang-b4592035dd987e3a615c1219a47988ed51e8e6e5.tar.gz
add Hygon Dhyana support to enable cmpxchg and sse2 support.
as Hygon Dhyana(Family 18h) share similar arch with AMD Family 17h
Diffstat (limited to 'erts/lib_src/common')
-rw-r--r--erts/lib_src/common/ethr_aux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/lib_src/common/ethr_aux.c b/erts/lib_src/common/ethr_aux.c
index 7b156fe01a..931469b386 100644
--- a/erts/lib_src/common/ethr_aux.c
+++ b/erts/lib_src/common/ethr_aux.c
@@ -109,7 +109,8 @@ x86_init(void)
if (eax > 0
&& (ETHR_IS_X86_VENDOR("GenuineIntel", ebx, ecx, edx)
- || ETHR_IS_X86_VENDOR("AuthenticAMD", ebx, ecx, edx))) {
+ || ETHR_IS_X86_VENDOR("AuthenticAMD", ebx, ecx, edx)
+ || ETHR_IS_X86_VENDOR("HygonGenuine", ebx, ecx, edx))) {
eax = 1;
ethr_x86_cpuid__(&eax, &ebx, &ecx, &edx);
}