Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_ARM for ARMv8 in 32bit mode
@ 2016-12-07  9:25 Peter Korsgaard
  2016-12-07  9:25 ` [Buildroot] [PATCH 2/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_NEON " Peter Korsgaard
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Peter Korsgaard @ 2016-12-07  9:25 UTC (permalink / raw)
  To: buildroot

Fixes:
http://autobuild.buildroot.net/results/5e6/5e67cc067a06f7364cde1a8393ea72608fe7fef1/

A number of packages use BR2_ARM_CPU_HAS_ARM to know if the target handles
classic A32 instructions, which is only true for ARMv8 cores when they are
running in 32bit mode.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 arch/Config.in.arm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/Config.in.arm b/arch/Config.in.arm
index 743f6ca..3c47bd7 100644
--- a/arch/Config.in.arm
+++ b/arch/Config.in.arm
@@ -193,21 +193,21 @@ config BR2_cortex_a17
 	depends on !BR2_ARCH_IS_64
 config BR2_cortex_a53
 	bool "cortex-A53"
-	select BR2_ARM_CPU_HAS_ARM
+	select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64
 	select BR2_ARM_CPU_HAS_NEON
 	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
+	select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64
 	select BR2_ARM_CPU_HAS_NEON
 	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
+	select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64
 	select BR2_ARM_CPU_HAS_NEON
 	select BR2_ARM_CPU_HAS_FP_ARMV8
 	select BR2_ARM_CPU_ARMV8
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_NEON for ARMv8 in 32bit mode
  2016-12-07  9:25 [Buildroot] [PATCH 1/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_ARM for ARMv8 in 32bit mode Peter Korsgaard
@ 2016-12-07  9:25 ` Peter Korsgaard
  2016-12-07  9:25 ` [Buildroot] [PATCH 3/3] arch/Config.in.arm: support thumb2 instructions " Peter Korsgaard
  2016-12-08 21:33 ` [Buildroot] [PATCH 1/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_ARM " Thomas Petazzoni
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2016-12-07  9:25 UTC (permalink / raw)
  To: buildroot

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>
---
 arch/Config.in.arm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/Config.in.arm b/arch/Config.in.arm
index 3c47bd7..6ec6029 100644
--- a/arch/Config.in.arm
+++ b/arch/Config.in.arm
@@ -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
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 3/3] arch/Config.in.arm: support thumb2 instructions for ARMv8 in 32bit mode
  2016-12-07  9:25 [Buildroot] [PATCH 1/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_ARM for ARMv8 in 32bit mode Peter Korsgaard
  2016-12-07  9:25 ` [Buildroot] [PATCH 2/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_NEON " Peter Korsgaard
@ 2016-12-07  9:25 ` Peter Korsgaard
  2016-12-08 21:33 ` [Buildroot] [PATCH 1/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_ARM " Thomas Petazzoni
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2016-12-07  9:25 UTC (permalink / raw)
  To: buildroot

The ARMv8 cores all support thumb2 instructions when running in aarch32 mode.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 arch/Config.in.arm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/Config.in.arm b/arch/Config.in.arm
index 6ec6029..2617976 100644
--- a/arch/Config.in.arm
+++ b/arch/Config.in.arm
@@ -195,6 +195,7 @@ config BR2_cortex_a53
 	bool "cortex-A53"
 	select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64
 	select BR2_ARM_CPU_HAS_NEON if !BR2_ARCH_IS_64
+	select BR2_ARM_CPU_HAS_THUMB2 if !BR2_ARCH_IS_64
 	select BR2_ARM_CPU_HAS_FP_ARMV8
 	select BR2_ARM_CPU_ARMV8
 	select BR2_ARCH_HAS_MMU_OPTIONAL
@@ -202,6 +203,7 @@ config BR2_cortex_a57
 	bool "cortex-A57"
 	select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64
 	select BR2_ARM_CPU_HAS_NEON if !BR2_ARCH_IS_64
+	select BR2_ARM_CPU_HAS_THUMB2 if !BR2_ARCH_IS_64
 	select BR2_ARM_CPU_HAS_FP_ARMV8
 	select BR2_ARM_CPU_ARMV8
 	select BR2_ARCH_HAS_MMU_OPTIONAL
@@ -209,6 +211,7 @@ config BR2_cortex_a72
 	bool "cortex-A72"
 	select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64
 	select BR2_ARM_CPU_HAS_NEON if !BR2_ARCH_IS_64
+	select BR2_ARM_CPU_HAS_THUMB2 if !BR2_ARCH_IS_64
 	select BR2_ARM_CPU_HAS_FP_ARMV8
 	select BR2_ARM_CPU_ARMV8
 	select BR2_ARCH_HAS_MMU_OPTIONAL
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_ARM for ARMv8 in 32bit mode
  2016-12-07  9:25 [Buildroot] [PATCH 1/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_ARM for ARMv8 in 32bit mode Peter Korsgaard
  2016-12-07  9:25 ` [Buildroot] [PATCH 2/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_NEON " Peter Korsgaard
  2016-12-07  9:25 ` [Buildroot] [PATCH 3/3] arch/Config.in.arm: support thumb2 instructions " Peter Korsgaard
@ 2016-12-08 21:33 ` Thomas Petazzoni
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-12-08 21:33 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed,  7 Dec 2016 10:25:20 +0100, Peter Korsgaard wrote:
> Fixes:
> http://autobuild.buildroot.net/results/5e6/5e67cc067a06f7364cde1a8393ea72608fe7fef1/
> 
> A number of packages use BR2_ARM_CPU_HAS_ARM to know if the target handles
> classic A32 instructions, which is only true for ARMv8 cores when they are
> running in 32bit mode.
> 
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> ---
>  arch/Config.in.arm | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

All three applied to master. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-12-08 21:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-07  9:25 [Buildroot] [PATCH 1/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_ARM for ARMv8 in 32bit mode Peter Korsgaard
2016-12-07  9:25 ` [Buildroot] [PATCH 2/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_NEON " Peter Korsgaard
2016-12-07  9:25 ` [Buildroot] [PATCH 3/3] arch/Config.in.arm: support thumb2 instructions " Peter Korsgaard
2016-12-08 21:33 ` [Buildroot] [PATCH 1/3] arch/Config.in.arm: only enable BR2_ARM_CPU_HAS_ARM " Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox