Add Hygon Dhyana support
This commit is contained in:
parent
9790651cac
commit
a398b2b0b1
2 changed files with 20 additions and 1 deletions
15
glibc-Add-Hygon-Dhyana-support.patch
Normal file
15
glibc-Add-Hygon-Dhyana-support.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
diff --git a/glibc-2.28/sysdeps/x86/cpu-features.c b/glibc-2.28/sysdeps/x86/cpu-features.c
|
||||||
|
index 91042505..1cc43bf7 100644
|
||||||
|
--- a/glibc-2.28/sysdeps/x86/cpu-features.c
|
||||||
|
+++ b/glibc-2.28/sysdeps/x86/cpu-features.c
|
||||||
|
@@ -527,8 +527,8 @@ 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". */
|
||||||
|
- else if (ebx == 0x68747541 && ecx == 0x444d4163 && edx == 0x69746e65)
|
||||||
|
+ /* This spells out "AuthenticAMD" or "HygonGenuine". */
|
||||||
|
+ else if ((ebx == 0x68747541 && ecx == 0x444d4163 && edx == 0x69746e65)||(ebx == 0x6f677948 && ecx == 0x656e6975 && edx == 0x6e65476e))
|
||||||
|
{
|
||||||
|
unsigned int extended_model;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
%global anolis_release .0.5
|
%global anolis_release .0.6
|
||||||
%define glibcsrcdir glibc-2.28
|
%define glibcsrcdir glibc-2.28
|
||||||
%define glibcversion 2.28
|
%define glibcversion 2.28
|
||||||
%define glibcrelease 225%{anolis_release}%{?dist}
|
%define glibcrelease 225%{anolis_release}%{?dist}
|
||||||
|
@ -1052,6 +1052,7 @@ Patch2006: glibc-Sync-to-lnd-35-for-LoongArch.patch
|
||||||
Patch2007: Fix-tst-cancel21.c-to-suit-kernel-struct-sigcontext-.patch
|
Patch2007: Fix-tst-cancel21.c-to-suit-kernel-struct-sigcontext-.patch
|
||||||
Patch2008: glibc-aarch64-Increase-small-and-medium-cases-for-__memcpy.patch
|
Patch2008: glibc-aarch64-Increase-small-and-medium-cases-for-__memcpy.patch
|
||||||
|
|
||||||
|
Patch2009: glibc-Add-Hygon-Dhyana-support.patch
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Continued list of core "glibc" package information:
|
# Continued list of core "glibc" package information:
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
@ -2886,6 +2887,9 @@ fi
|
||||||
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
|
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 03 2024 Jing Li <lijing@hygon.cn> - 2.28-225.0.6.6
|
||||||
|
- Add Hygon Dhyana support
|
||||||
|
|
||||||
* Mon Dec 11 2023 Kaiqiang Wang <wangkaiqiang@inspur.com> - 2.28-225.0.5.6
|
* Mon Dec 11 2023 Kaiqiang Wang <wangkaiqiang@inspur.com> - 2.28-225.0.5.6
|
||||||
* aarch64: Increase small and medium cases for __memcpy_generic (bug#7060)
|
* aarch64: Increase small and medium cases for __memcpy_generic (bug#7060)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue