diff options
author | Carlos Eduardo Seo <carlos.seo@arm.com> | 2020-11-13 16:33:07 -0300 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-08-05 19:45:19 +0100 |
commit | 2f3bf4cf639b49fd5a37ea300d84b638af8cde46 (patch) | |
tree | f387219d25dcf786a76c1cd8cc65b535a6f65e71 /sysdeps/unix/sysv/linux/aarch64/cpu-features.c | |
parent | ccce788403ca63581a3ab08b619368223ed2502e (diff) | |
download | glibc-arm/morello/v1.zip glibc-arm/morello/v1.tar.gz glibc-arm/morello/v1.tar.bz2 |
TODO(drop): aarch64: morello: CPU feature detection for Morelloarm/morello/v1
Initial detection of Arm Morello architecture from the HWCAP2 bit and CPU
identification from MIDR_EL0.
TODO: not needed?
- lp64 does not have to detect
- purecap can assume morello
Diffstat (limited to 'sysdeps/unix/sysv/linux/aarch64/cpu-features.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/aarch64/cpu-features.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/cpu-features.c b/sysdeps/unix/sysv/linux/aarch64/cpu-features.c index d14c0f4..3d95815 100644 --- a/sysdeps/unix/sysv/linux/aarch64/cpu-features.c +++ b/sysdeps/unix/sysv/linux/aarch64/cpu-features.c @@ -126,4 +126,7 @@ init_cpu_features (struct cpu_features *cpu_features) /* Check if SVE is supported. */ cpu_features->sve = GLRO (dl_hwcap) & HWCAP_SVE; + + /* Check if Morello is supported. */ + cpu_features->morello = GLRO (dl_hwcap2) & HWCAP2_MORELLO; } |