Pre Merge pull request !53 from lijing22222/a8-lijing

This commit is contained in:
lijing22222 2024-03-01 10:13:59 +00:00 committed by Gitee
commit af36fca8fd
No known key found for this signature in database
GPG key ID: 173E9B9CA92EEF8F
2 changed files with 33 additions and 2 deletions

View file

@ -0,0 +1,28 @@
From ed64d30125f855e25ac6f12d8863857dfd3e2cbe Mon Sep 17 00:00:00 2001
From: lijing22222 <lijing@hygon.cn>
Date: Fri, 1 Mar 2024 16:00:15 +0800
Subject: [PATCH] Add Hygon Support
---
sysdeps/x86/cpu-features.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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". */
- 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;
--
2.17.1

View file

@ -133,7 +133,7 @@ end \
Summary: The GNU libc libraries Summary: The GNU libc libraries
Name: glibc Name: glibc
Version: %{glibcversion} Version: %{glibcversion}
Release: %{glibcrelease}.7 Release: %{glibcrelease}.8
# In general, GPLv2+ is used by programs, LGPLv2+ is used for # In general, GPLv2+ is used by programs, LGPLv2+ is used for
# libraries. # libraries.
@ -1068,7 +1068,7 @@ Patch2005: glibc-elf-Fix-tst-align3.patch
Patch2006: glibc-Sync-to-lnd-35-for-LoongArch.patch 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-Support.patch
############################################################################## ##############################################################################
# Continued list of core "glibc" package information: # Continued list of core "glibc" package information:
############################################################################## ##############################################################################
@ -2903,6 +2903,9 @@ fi
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared %files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
%changelog %changelog
* Fri Mar 01 2024 Jing Li <lijing@hygon.cn> - 2.28-236.0.1.8
- Add Hygon Support
* Mon Dec 11 2023 Rongwei Wang <rongwei.wang@linux.alibaba.com> - 2.28-236.0.1.7 * Mon Dec 11 2023 Rongwei Wang <rongwei.wang@linux.alibaba.com> - 2.28-236.0.1.7
- elf: Properly align PT_LOAD segments - elf: Properly align PT_LOAD segments
- Sync loongarch64 code to lnd.35. (lixing@loongson.cn) - Sync loongarch64 code to lnd.35. (lixing@loongson.cn)