![]() The CPU features initialization code uses CPUID registers (rather than HWCAP). The equality comparisons it uses are incorrect: for example FEAT_SVE is not set if SVE2 is available. Using HWCAPs for these is both simpler and correct. The initialization must also be done atomically to avoid multiple threads causing corruption due to non-atomic RMW accesses to the global. libgcc: PR target/115342 * config/aarch64/cpuinfo.c (__init_cpu_features_constructor): Use HWCAP where possible. Use atomic write for initialization. Fix FEAT_PREDRES comparison. (__init_cpu_features_resolver): Use atomic load for correct initialization. (__init_cpu_features): Likewise. (cherry picked from commit d7cbcfe7c33645eaf95f175f19884d443817857b) |
||
---|---|---|
.. | ||
__aarch64_have_sme.c | ||
__arm_sme_state.S | ||
__arm_tpidr2_restore.S | ||
__arm_tpidr2_save.S | ||
__arm_za_disable.S | ||
aarch64-asm.h | ||
aarch64-unwind.h | ||
cpuinfo.c | ||
crtfastmath.c | ||
crti.S | ||
crtn.S | ||
freebsd-unwind.h | ||
gnu-unwind.h | ||
heap-trampoline.c | ||
libgcc-sme.ver | ||
libgcc-softfp.ver | ||
linux-unwind.h | ||
lse-init.c | ||
lse.S | ||
sfp-exceptions.c | ||
sfp-machine.h | ||
sync-cache.c | ||
t-aarch64 | ||
t-heap-trampoline | ||
t-lse | ||
t-softfp | ||
value-unwind.h |