public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Gartz <Wolfgang.Gartz@aastra.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PLATFORM_CPPFLAGS for CPU=pxa and ixp
Date: Sat, 06 Oct 2007 19:42:30 +0200	[thread overview]
Message-ID: <4707C906.1000209@aastra.com> (raw)

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

             reply	other threads:[~2007-10-06 17:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-06 17:42 Wolfgang Gartz [this message]
2007-10-06 18:35 ` [U-Boot-Users] PLATFORM_CPPFLAGS for CPU=pxa and ixp 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4707C906.1000209@aastra.com \
    --to=wolfgang.gartz@aastra.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox