diff options
author | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2025-02-24 16:38:02 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2025-03-13 13:30:31 +0000 |
commit | 6e47e6d48844ee578fd384aaa4b8cd62d73b49db (patch) | |
tree | 7325a88d89a6456355e282f777cdb729ceb53030 /libgcc | |
parent | 11c6d8cc9e5924c3a70e9289d1be2c2885b1dc6d (diff) | |
download | gcc-6e47e6d48844ee578fd384aaa4b8cd62d73b49db.zip gcc-6e47e6d48844ee578fd384aaa4b8cd62d73b49db.tar.gz gcc-6e47e6d48844ee578fd384aaa4b8cd62d73b49db.tar.bz2 |
libgcc: Remove PREDRES and LS64 from AArch64 cpuinfo
Change AArch64 cpuinfo to follow the latest updates to the FMV spec [1]:
Remove FEAT_PREDRES and FEAT_LS64*. Preserve the ordering in enum CPUFeatures.
[1] https://github.com/ARM-software/acle/pull/382
gcc:
* common/config/aarch64/cpuinfo.h: Remove FEAT_PREDRES and FEAT_LS64*.
* config/aarch64/aarch64-option-extensions.def: Remove FMV support
for PREDRES.
libgcc:
* config/aarch64/cpuinfo.c (__init_cpu_features_constructor):
Remove FEAT_PREDRES and FEAT_LS64* support.
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/config/aarch64/cpuinfo.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libgcc/config/aarch64/cpuinfo.c b/libgcc/config/aarch64/cpuinfo.c index 6b4952e..dda9dc6 100644 --- a/libgcc/config/aarch64/cpuinfo.c +++ b/libgcc/config/aarch64/cpuinfo.c @@ -339,25 +339,6 @@ __init_cpu_features_constructor (unsigned long hwcap, setCPUFeature(FEAT_SME_I64); if (hwcap2 & HWCAP2_SME_F64F64) setCPUFeature(FEAT_SME_F64); - if (hwcap & HWCAP_CPUID) - { - unsigned long ftr; - - getCPUFeature(ID_AA64ISAR1_EL1, ftr); - /* ID_AA64ISAR1_EL1.SPECRES >= 0b0001 */ - if (extractBits(ftr, 40, 4) >= 0x1) - setCPUFeature(FEAT_PREDRES); - /* ID_AA64ISAR1_EL1.LS64 >= 0b0001 */ - if (extractBits(ftr, 60, 4) >= 0x1) - setCPUFeature(FEAT_LS64); - /* ID_AA64ISAR1_EL1.LS64 >= 0b0010 */ - if (extractBits(ftr, 60, 4) >= 0x2) - setCPUFeature(FEAT_LS64_V); - /* ID_AA64ISAR1_EL1.LS64 >= 0b0011 */ - if (extractBits(ftr, 60, 4) >= 0x3) - setCPUFeature(FEAT_LS64_ACCDATA); - } - if (hwcap & HWCAP_FP) { setCPUFeature(FEAT_FP); |