]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
aarch64: Add HWCAP_GCS
authorYury Khrustalev <yury.khrustalev@arm.com>
Tue, 21 Jan 2025 09:39:45 +0000 (09:39 +0000)
committerYury Khrustalev <yury.khrustalev@arm.com>
Tue, 21 Jan 2025 11:45:14 +0000 (11:45 +0000)
Use upper 32 bits of HWCAP.

Reviewed-by: Andreas K. Huettel <dilfridge@gentoo.org>
sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
sysdeps/unix/sysv/linux/aarch64/cpu-features.c

index f2bebaaba9eb0a3a0c949082ce32e8bfb6124d8c..d064a091a67cde66244aee0171117d3547164e01 100644 (file)
@@ -54,6 +54,7 @@
 #define HWCAP_SB               (1 << 29)
 #define HWCAP_PACA             (1 << 30)
 #define HWCAP_PACG             (1UL << 31)
+#define HWCAP_GCS              (1UL << 32)
 
 #define HWCAP2_DCPODP          (1 << 0)
 #define HWCAP2_SVE2            (1 << 1)
index 1ecf6cd1766f00d35fbdf82a17f4a278b47239c5..6d63c8a9ecba5608ebd96c6ac2455778f5fbee3c 100644 (file)
@@ -177,10 +177,6 @@ init_cpu_features (struct cpu_features *cpu_features)
   /* Check if MOPS is supported.  */
   cpu_features->mops = GLRO (dl_hwcap2) & HWCAP2_MOPS;
 
-#ifndef HWCAP_GCS
-#define HWCAP_GCS (1UL << 32)
-#endif
-
   if (GLRO (dl_hwcap) & HWCAP_GCS)
     /* GCS status may be updated later by binary compatibility checks.  */
     GL (dl_aarch64_gcs) = TUNABLE_GET (glibc, cpu, aarch64_gcs, uint64_t, 0);