[U-Boot] [RFC] ARM: bump minimum arch to armv4t when supported

Jeroen Hofstee jeroen at myspectrum.nl
Sat Jun 21 19:34:47 CEST 2014


U-boot typically uses an -march lower then actually supported
by the architecture to be backwards compatible with older
compilers. For armv4 this also causes problems occasionally,
like "selected processor does not support ARM mode `bx lr'".
Although this case is actually a llvm bug afaik, it should be
possible to correct it for GNU tools with --fix-v4bx, but that
seems to be bugged as well (at least I cannot get it working).

Since there is exactly 1 board in u-boot (jornada) which
actually is armv4, I propose to increase the arch for the
others to armv4t. As far as I can make some sense of ARM
versions the other chips should have these instructions.

cc: Albert Aribaud <albert.u.boot at aribaud.net>
Not-signed-off-since-rfc: Jeroen Hofstee <jeroen at myspectrum.nl>
---
 arch/arm/cpu/arm720t/config.mk   | 2 +-
 arch/arm/cpu/arm920t/config.mk   | 2 +-
 arch/arm/cpu/arm946es/config.mk  | 2 +-
 arch/arm/cpu/arm_intcm/config.mk | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/cpu/arm720t/config.mk b/arch/arm/cpu/arm720t/config.mk
index 772fb41..245c52f 100644
--- a/arch/arm/cpu/arm720t/config.mk
+++ b/arch/arm/cpu/arm720t/config.mk
@@ -6,4 +6,4 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-PLATFORM_CPPFLAGS += -march=armv4 -mtune=arm7tdmi
+PLATFORM_CPPFLAGS += -march=armv4t -mtune=arm7tdmi
diff --git a/arch/arm/cpu/arm920t/config.mk b/arch/arm/cpu/arm920t/config.mk
index 799afff..de02775 100644
--- a/arch/arm/cpu/arm920t/config.mk
+++ b/arch/arm/cpu/arm920t/config.mk
@@ -5,4 +5,4 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-PLATFORM_CPPFLAGS += -march=armv4
+PLATFORM_CPPFLAGS += -march=armv4t
diff --git a/arch/arm/cpu/arm946es/config.mk b/arch/arm/cpu/arm946es/config.mk
index 438668d..c74a33c 100644
--- a/arch/arm/cpu/arm946es/config.mk
+++ b/arch/arm/cpu/arm946es/config.mk
@@ -5,4 +5,4 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-PLATFORM_CPPFLAGS +=  -march=armv4
+PLATFORM_CPPFLAGS +=  -march=armv4t
diff --git a/arch/arm/cpu/arm_intcm/config.mk b/arch/arm/cpu/arm_intcm/config.mk
index 438668d..c74a33c 100644
--- a/arch/arm/cpu/arm_intcm/config.mk
+++ b/arch/arm/cpu/arm_intcm/config.mk
@@ -5,4 +5,4 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-PLATFORM_CPPFLAGS +=  -march=armv4
+PLATFORM_CPPFLAGS +=  -march=armv4t
-- 
1.8.3.2



More information about the U-Boot mailing list