Skip to contentSkip to conversation

arm: Use mtune for Xscale

PATCH New Alexey Brodkin 1 participant 2 messages May 25, 2018 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: Use mtune for Xscale

Otherwise with GCC 8 we see this warning [which is rendered to an error with -Werror, which happens for buildman/travisci], see [1]:
------------------------------->8-------------------------------
cc1: warning: switch -mcpu=xscale conflicts with -march=armv5te switch ------------------------------->8-------------------------------

Interesting enough with GCC 7.3.0 (which is current default in buildman) that change leads to another failure, see [2]:
------------------------------->8-------------------------------
Error: selected processor does not support `pld [lr]' in ARM mode ------------------------------->8-------------------------------

So I guess this change might be put in series with buildman toolchain bump.

[1] https://travis-ci.org/abrodkin/u-boot/jobs/383219348
[2] https://travis-ci.org/abrodkin/u-boot/jobs/383594006

---
 arch/arm/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/Makefile +1 -1
index 680c6e8516dc..18e0193c43c0 100644
@@ -37,7 +37,7 @@ tune-$(CONFIG_CPU_ARM920T)	=
 tune-$(CONFIG_CPU_ARM926EJS)	=
 tune-$(CONFIG_CPU_ARM946ES)	=
 tune-$(CONFIG_CPU_SA1100)	=-mtune=strongarm1100
-tune-$(CONFIG_CPU_PXA)		=-mcpu=xscale
+tune-$(CONFIG_CPU_PXA)		=-mtune=xscale
 tune-$(CONFIG_CPU_ARM1136)	=
 tune-$(CONFIG_CPU_ARM1176)	=
 tune-$(CONFIG_CPU_V7A)		=
Signature · 1 line
2.17.0
#1 lore raw

PATCH 1/1 arm: Use mtune for Xscale

Hello,

Just a short update.

Quoted 5 lines · Alexey Brodkin

Otherwise with GCC 8 we see this warning [which is rendered to an error with -Werror, which happens for buildman/travisci], see [1]:
------------------------------->8-------------------------------
cc1: warning: switch -mcpu=xscale conflicts with -march=armv5te switch ------------------------------->8-------------------------------

Even though problem listed above got solved with this patch but it introduces another issue I missed initially with GCC 8.1.0, see [3]:
------------------------------->8-------------------------------

       arm:  +   h2200

+arch/arm/cpu/pxa/start.S: Assembler messages:
+arch/arm/cpu/pxa/start.S:179: Error: selected processor does not support `strd r4,[r1],#8' in ARM mode ------------------------------->8-------------------------------

[3] https://travis-ci.org/abrodkin/u-boot/jobs/383423699

So that doesn't seem to be the easy fix :(

-Alexey

Quoted 31 lines

Interesting enough with GCC 7.3.0 (which is current default in buildman) that change leads to another failure, see [2]:
------------------------------->8-------------------------------
Error: selected processor does not support `pld [lr]' in ARM mode ------------------------------->8-------------------------------

So I guess this change might be put in series with buildman toolchain bump.

[1] https://travis-ci.org/abrodkin/u-boot/jobs/383219348
[2] https://travis-ci.org/abrodkin/u-boot/jobs/383594006

---
 arch/arm/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/Makefile +1 -1
index 680c6e8516dc..18e0193c43c0 100644
@@ -37,7 +37,7 @@ tune-$(CONFIG_CPU_ARM920T)	=
 tune-$(CONFIG_CPU_ARM926EJS)	=
 tune-$(CONFIG_CPU_ARM946ES)	=
 tune-$(CONFIG_CPU_SA1100)	=-mtune=strongarm1100
-tune-$(CONFIG_CPU_PXA)		=-mcpu=xscale
+tune-$(CONFIG_CPU_PXA)		=-mtune=xscale
 tune-$(CONFIG_CPU_ARM1136)	=
 tune-$(CONFIG_CPU_ARM1176)	=
 tune-$(CONFIG_CPU_V7A)		=