diff options
author | Yury Khrustalev <yury.khrustalev@arm.com> | 2025-01-21 09:39:45 +0000 |
---|---|---|
committer | Yury Khrustalev <yury.khrustalev@arm.com> | 2025-01-21 11:45:14 +0000 |
commit | 50eaf548838b7f9cbc05789f6007a1176bdaf90f (patch) | |
tree | 4ec0c3ca2ce0294aa90c2ad708f3fee53d119663 /sysdeps/unix/sysv | |
parent | 71b49e299dbe22853095119da5064303e1d6b9ff (diff) | |
download | glibc-50eaf548838b7f9cbc05789f6007a1176bdaf90f.zip glibc-50eaf548838b7f9cbc05789f6007a1176bdaf90f.tar.gz glibc-50eaf548838b7f9cbc05789f6007a1176bdaf90f.tar.bz2 |
aarch64: Add HWCAP_GCS
Use upper 32 bits of HWCAP.
Reviewed-by: Andreas K. Huettel <dilfridge@gentoo.org>
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r-- | sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h | 1 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/aarch64/cpu-features.c | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h index f2bebaa..d064a09 100644 --- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h +++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h @@ -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) diff --git a/sysdeps/unix/sysv/linux/aarch64/cpu-features.c b/sysdeps/unix/sysv/linux/aarch64/cpu-features.c index 1ecf6cd..6d63c8a 100644 --- a/sysdeps/unix/sysv/linux/aarch64/cpu-features.c +++ b/sysdeps/unix/sysv/linux/aarch64/cpu-features.c @@ -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); |