aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2019-05-24 16:57:33 +0200
committerGitHub <[email protected]>2019-05-24 16:57:33 +0200
commitb7f6d273ffea06ec925f7842d2350d0803a23c2e (patch)
tree49c7ce9c05840a5b8e032bf3b05bca9173efd098 /erts
parentbaf1bac5503e9eef0219fa5f35a4e86a1e836f28 (diff)
parentb4592035dd987e3a615c1219a47988ed51e8e6e5 (diff)
downloadotp-b7f6d273ffea06ec925f7842d2350d0803a23c2e.tar.gz
otp-b7f6d273ffea06ec925f7842d2350d0803a23c2e.tar.bz2
otp-b7f6d273ffea06ec925f7842d2350d0803a23c2e.zip
Merge pull request #2233 from hygonsoc/master
add Hygon Dhyana support to enable cmpxchg and sse2 support. OTP-15840
Diffstat (limited to 'erts')
-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);
}