diff options
author | Jan Beulich <jbeulich@suse.com> | 2024-06-10 08:47:58 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2024-06-10 08:47:58 +0200 |
commit | 48d6d8c9e91018a625a797d50ac4def88376a515 (patch) | |
tree | 1ffbd18f11e08afbddc26ab44f7daec8f0a8fcd1 | |
parent | 8e2eb6039d183b7c571da9eb83b933021c5b29be (diff) | |
download | gcc-48d6d8c9e91018a625a797d50ac4def88376a515.zip gcc-48d6d8c9e91018a625a797d50ac4def88376a515.tar.gz gcc-48d6d8c9e91018a625a797d50ac4def88376a515.tar.bz2 |
libgcc/aarch64: also provide AT_HWCAP2 fallback
Much like AT_HWCAP is already provided in case the platform headers
don't have the value (yet).
libgcc/
* config/aarch64/cpuinfo.c: Provide AT_HWCAP2.
-rw-r--r-- | libgcc/config/aarch64/cpuinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgcc/config/aarch64/cpuinfo.c b/libgcc/config/aarch64/cpuinfo.c index 544c551..ec36d10 100644 --- a/libgcc/config/aarch64/cpuinfo.c +++ b/libgcc/config/aarch64/cpuinfo.c @@ -146,6 +146,9 @@ struct { #define HWCAP_PACG (1UL << 31) #endif +#ifndef AT_HWCAP2 +#define AT_HWCAP2 26 +#endif #ifndef HWCAP2_DCPODP #define HWCAP2_DCPODP (1 << 0) #endif |