arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_NEON for ARMv8 in 32bit mode
authorPeter Korsgaard <peter@korsgaard.com>
Wed, 7 Dec 2016 09:25:21 +0000 (10:25 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 8 Dec 2016 21:32:16 +0000 (22:32 +0100)
A number of packages use BR2_ARM_CPU_HAS_NEON to know if the target handles
aarch32 neon instructions, which is only true for ARMv8 cores when they are
running in 32bit mode.

Notice: These cores do support neon-like instructions using a different
encoding in 64bit mode (it is a required part of ARMv8, similar to the FPU).

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
arch/Config.in.arm

index 3c47bd70638bbe5352c8267c0ee01f656fadc7b6..6ec6029d3bb1e154153fb6f061640891e9384d8a 100644 (file)
@@ -194,21 +194,21 @@ config BR2_cortex_a17
 config BR2_cortex_a53
        bool "cortex-A53"
        select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64
-       select BR2_ARM_CPU_HAS_NEON
+       select BR2_ARM_CPU_HAS_NEON if !BR2_ARCH_IS_64
        select BR2_ARM_CPU_HAS_FP_ARMV8
        select BR2_ARM_CPU_ARMV8
        select BR2_ARCH_HAS_MMU_OPTIONAL
 config BR2_cortex_a57
        bool "cortex-A57"
        select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64
-       select BR2_ARM_CPU_HAS_NEON
+       select BR2_ARM_CPU_HAS_NEON if !BR2_ARCH_IS_64
        select BR2_ARM_CPU_HAS_FP_ARMV8
        select BR2_ARM_CPU_ARMV8
        select BR2_ARCH_HAS_MMU_OPTIONAL
 config BR2_cortex_a72
        bool "cortex-A72"
        select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64
-       select BR2_ARM_CPU_HAS_NEON
+       select BR2_ARM_CPU_HAS_NEON if !BR2_ARCH_IS_64
        select BR2_ARM_CPU_HAS_FP_ARMV8
        select BR2_ARM_CPU_ARMV8
        select BR2_ARCH_HAS_MMU_OPTIONAL