mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
aarch64: Add HWCAP_GCS
Use upper 32 bits of HWCAP. Reviewed-by: Andreas K. Huettel <dilfridge@gentoo.org>
This commit is contained in:
parent
71b49e299d
commit
50eaf54883
2 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue