Add Hygon Support

This commit is contained in:
lijing22222 2024-03-01 16:04:49 +08:00
parent 44c74a19f9
commit de46f06819
2 changed files with 11 additions and 11 deletions

View file

@ -1,18 +1,18 @@
From 76748aa5bc937b5e750d9335b7a28d0a05127ac4 Mon Sep 17 00:00:00 2001
From ed64d30125f855e25ac6f12d8863857dfd3e2cbe Mon Sep 17 00:00:00 2001
From: lijing22222 <lijing@hygon.cn>
Date: Fri, 1 Mar 2024 13:01:40 +0800
Date: Fri, 1 Mar 2024 16:00:15 +0800
Subject: [PATCH] Add Hygon Support
---
glibc-2.28/sysdeps/x86/cpu-features.c | 5 +++--
sysdeps/x86/cpu-features.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/glibc-2.28/sysdeps/x86/cpu-features.c b/glibc-2.28/sysdeps/x86/cpu-features.c
index ea0b64fd..9e3787ef 100644
--- a/glibc-2.28/sysdeps/x86/cpu-features.c
+++ b/glibc-2.28/sysdeps/x86/cpu-features.c
@@ -344,8 +344,9 @@ init_cpu_features (struct cpu_features *cpu_features)
cpu_features->feature[index_arch_Prefer_No_AVX512]
diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
index 91042505..0ce37a9a 100644
--- a/sysdeps/x86/cpu-features.c
+++ b/sysdeps/x86/cpu-features.c
@@ -527,8 +527,9 @@ init_cpu_features (struct cpu_features *cpu_features)
cpu_features->preferred[index_arch_Prefer_No_AVX512]
|= bit_arch_Prefer_No_AVX512;
}
- /* This spells out "AuthenticAMD". */
@ -21,7 +21,7 @@ index ea0b64fd..9e3787ef 100644
+ else if ((ebx == 0x68747541 && ecx == 0x444d4163 && edx == 0x69746e65)||(ebx == 0x6f677948 && ecx == 0x656e6975 && edx == 0x6e65476e))
+
{
unsigned int extended_model, stepping;
unsigned int extended_model;
--
2.17.1

View file

@ -2903,7 +2903,7 @@ fi
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
%changelog
* Wed Mar 01 2024 Jing Li <lijing@hygon.cn> - 2.28-236.8
* Fri Mar 01 2024 Jing Li <lijing@hygon.cn> - 2.28-236.8
- Add Hygon Support
* Mon Dec 11 2023 Rongwei Wang <rongwei.wang@linux.alibaba.com> - 2.28-236.0.1.7