From cb7f92c40acf03e11484389e9f4f6cc045401ca8 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 15 Nov 2019 17:06:46 +0000 Subject: [PATCH] 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. --- base/dispatch.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.11.0