From: Mark Wooding Date: Fri, 15 Nov 2019 17:06:46 +0000 (+0000) Subject: base/dispatch.c: Recognize `CPUFEAT_ARM_NEON' as requesting ARM64 SIMD. X-Git-Tag: 2.4.5~4 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/cb7f92c40acf03e11484389e9f4f6cc045401ca8 base/dispatch.c: Recognize `CPUFEAT_ARM_NEON' as requesting ARM64 SIMD. The original ARMv8 spec describes the advanced SIMD instructions as mandatory, but there's a feature flag for them, so I guess that there might be processors which don't support them. --- diff --git a/base/dispatch.c b/base/dispatch.c index 42c64ee5..f0531ea9 100644 --- a/base/dispatch.c +++ b/base/dispatch.c @@ -340,6 +340,7 @@ static unsigned hwcaps = 0; # define WANTAUX(_) \ WANT_AT_HWCAP(_) # define CAPMAP(_) \ + _(ARM_NEON, "arm:neon") \ _(ARM_AES, "arm:aes") #endif @@ -456,6 +457,7 @@ static void probe_hwcaps(void) # endif #endif #if CPUFAM_ARM64 + if (probed.hwcap & HWCAP_ASIMD) hw |= HF_ARM_NEON; if (probed.hwcap & HWCAP_AES) hw |= HF_ARM_AES; #endif