public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] PLATFORM_CPPFLAGS for CPU=pxa and ixp
@ 2007-10-06 17:42 Wolfgang Gartz
  2007-10-06 18:35 ` Robert Schwebel
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Gartz @ 2007-10-06 17:42 UTC (permalink / raw)
  To: u-boot

Hello all,

I'm using U-Boot-1.2.0 on a board from Phytec with PXA270 processor
(ARCH=arm, CPU=pxa, board=pcm027).
During compilation with gcc-4.1.2, I get one compiler warning for
each source file, for instance:
asm.S:0: warning: target CPU does not support interworking
cmp.c:0: warning: target CPU does not support interworking
...
It seems for me, the compiler thinks that the actual cpu is not able
to mix original 32 bit ARM code with 16 bit thumb code.
Currently compiler flags for CPU=pxa (in cpu/pxa/config.mk) are:
PLATFORM_CPPFLAGS += -march=armv5 -mtune=xscale .
When I change it to
PLATFORM_CPPFLAGS += -march=armv5te -mtune=xscale
all of this warnings disappear.

The manual says, all generations of XScale processors comply with
the "armv5te" architecture.

For comparison I have looked in another XScale cpu/ixp/config.mk:
PLATFORM_CPPFLAGS +=
                  -mbig-endian -march=armv5te -mtune=strongarm1100
Here we have "-march=armv5te".
I don't have a IXP cpu, but from theory: is it better to set
"-mtune=xscale" here to for the CPU=ixp :
PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=xscale
because Strongarm1100 was the predecessor of XScale ?

There are no changes of PLATFORM_CPPFLAGS for CPU=pxa and ixp
between U-Boot-1.2.0 and U-Boot-1.3.0-rc2.

Therefore my question: are there special reasons to use
-march=armv5           for pxa   and
-mtune=strongarm1100   for ixp   ?

Kind regards
Wolfgang Gartz

Development engineer
Aastra DeTeWe GmbH
Zeughofstr. 1
D-10997 Berlin

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

end of thread, other threads:[~2007-10-08 12:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-06 17:42 [U-Boot-Users] PLATFORM_CPPFLAGS for CPU=pxa and ixp Wolfgang Gartz
2007-10-06 18:35 ` Robert Schwebel
2007-10-07 22:25   ` Wolfgang Denk
2007-10-08  5:43     ` Robert Schwebel
2007-10-08  7:47       ` Wolfgang Gartz
2007-10-08  8:05         ` Robert Schwebel
2007-10-08 12:44       ` Wolfgang Denk
2007-10-08 12:56         ` Robert Schwebel

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