aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2024-06-10 08:47:58 +0200
committerJan Beulich <jbeulich@suse.com>2024-06-10 08:59:46 +0200
commit6bd8a3a7a8943184b168888321f626d98045316c (patch)
tree10fd5875e354c9e200bf90076031022b7da9ec5d
parent489b58b79782fa361c0d7e852e0e684d743c8399 (diff)
downloadgcc-6bd8a3a7a8943184b168888321f626d98045316c.zip
gcc-6bd8a3a7a8943184b168888321f626d98045316c.tar.gz
gcc-6bd8a3a7a8943184b168888321f626d98045316c.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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgcc/config/aarch64/cpuinfo.c b/libgcc/config/aarch64/cpuinfo.c
index 4b94fca..eb0ac97 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