arch/arm: add an armv8.3a core
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 30 Dec 2018 14:16:13 +0000 (15:16 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 30 Dec 2018 15:10:04 +0000 (16:10 +0100)
The armv8.3a generation is a cumulative extension to armv8.2a.

Since gcc correctly enables the appropriate extensions based on the core
name, we don't really need to introduce a separate config for armv8.3a,
and we can piggyback on armv8a.

This new core is AArch64 only.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
arch/Config.in.arm

index e3c64d12ab441946ba80cb327b6efd7072d0ba22..a9972978d4a92a79c92ad49f29e7b4629e42ac6d 100644 (file)
@@ -473,6 +473,16 @@ config BR2_cortex_a75_a55
        select BR2_ARCH_HAS_MMU_OPTIONAL
        select BR2_ARCH_NEEDS_GCC_AT_LEAST_8
 endif # BR2_ARCH_IS_64
+
+if BR2_ARCH_IS_64
+comment "armv8.3a cores"
+config BR2_saphira
+       bool "saphira"
+       select BR2_ARM_CPU_HAS_FP_ARMV8
+       select BR2_ARM_CPU_ARMV8A
+       select BR2_ARCH_HAS_MMU_OPTIONAL
+       select BR2_ARCH_NEEDS_GCC_AT_LEAST_8
+endif # BR2_ARCH_IS_64
 endchoice
 
 config BR2_ARM_ENABLE_NEON
@@ -822,6 +832,8 @@ config BR2_GCC_TARGET_CPU
        default "cortex-a55"    if BR2_cortex_a55
        default "cortex-a75"    if BR2_cortex_a75
        default "cortex-a75.cortex-a55" if BR2_cortex_a75_a55
+       # armv8.3a
+       default "saphira"       if BR2_saphira
 
 config BR2_GCC_TARGET_ABI
        default "aapcs-linux"   if BR2_arm || BR2_armeb