public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] reasons for armv5 as default
Date: Sat, 19 Feb 2011 18:48:44 +0100	[thread overview]
Message-ID: <4D60027C.90003@free.fr> (raw)
In-Reply-To: <4D5FE8F0.1020607@ahsoftware.de>

Le 19/02/2011 16:59, Alexander Holler a ?crit :
> Am 19.02.2011 16:40, schrieb Alexander Holler:
>> Hello,
>>
>> Am 19.02.2011 16:32, schrieb Albert ARIBAUD:
>>
>>> Granted :) -- the best option would be to have "-float-abi=none", but
>>> that does not exist, and I prefer to be sure that if some poor soul puts
>>> floating point code in U-Boot then at least it is going to work for all
>>> platforms, so I'll keep -msoft-float in here.
>>
>> Hmm, but as we've seen, that doesn't work for all platforms because you
>> can't mix softfloat and hardfloat. So using softfloat breaks building on
>> (default-) hardfloat platforms if some poor soul puts floating point
>> code in (which requires hardfloat-libraries too).

You're missing the fact that floating point code is a no-no in U-Boot. 
We're not talking about the best option to support floating-point code 
in U-Boot, but the best option to catch the use of floating point.

However, as I've said, I would be fine with someone submitting a patch 
that makes -mfloat-abi=xxx and -mfpu=yyy available as configuration 
options so that a board maintainer who feels the irresistible urge to 
have hard float support can have it *for performance improvement only* 
(as in the case M?ns described about integer code being performed with 
float instructions), not for explicit use of floats or doubles in the code.

Note that with such a scheme, a board (or SoC, or [vendor-specific] cpu) 
maintainer could even override the float default and decide to leave it 
blank so that the toolchain default is used, if they so want.

The only things that won't be an option if such a patch is submitted are 
that i) the default config setting for float must be soft-float, and ii) 
a doc/README.arm-float must be added to reflect how the option works and 
what the risks are of soft and hard float, and that

>> So I still think going with the default option would be the right way to
>> go. ;)
>
>
> Btw, while we are there, is there any reason, besides being carefull,
> why u-boot for arm is compiled with -march=armv5(te) by default?
>
> I'm just curious if there are some reasons for not using march=amrv7a
> for armv7 platforms and don't want to start a discussion about removing
> that default.
>
> I've seen some comments about armv5, e.g. in
> arch/arm/cpu/armv7/omap3/cache.S, but I'm missing the knowledge to
> understand them.

IIRC the conclusion was that U-Boot does not need armv7 specific 
instructions and besides, not all toolchains frequently used with U-Boot 
have v7 support -- especially the toolchain coming with ELDK 4.2.

> Regards,
>
> Alexander

Amicalement,
-- 
Albert.

  reply	other threads:[~2011-02-19 17:48 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-18 15:16 [U-Boot] [RFC][PATCH] ARMV7: Patch to fix hard float build issues Raghuveer Murthy
2011-02-18 17:01 ` Albert ARIBAUD
2011-02-18 21:11   ` Alexander Holler
2011-02-19 11:19   ` Måns Rullgård
2011-02-19 13:19     ` Alexander Holler
2011-02-19 13:25       ` Måns Rullgård
2011-02-19 13:51         ` Albert ARIBAUD
2011-02-19 14:06           ` Alexander Holler
2011-02-19 14:27             ` Albert ARIBAUD
2011-02-19 14:34               ` Måns Rullgård
2011-02-19 15:18                 ` Albert ARIBAUD
2011-02-19 18:36                   ` Måns Rullgård
2011-02-19 19:37                 ` Wolfgang Denk
2011-02-19 14:39               ` Alexander Holler
     [not found]                 ` <4D5FE29A.6050609@free.fr>
2011-02-19 15:40                   ` Alexander Holler
2011-02-19 15:59                     ` [U-Boot] reasons for armv5 as default Alexander Holler
2011-02-19 17:48                       ` Albert ARIBAUD [this message]
2011-02-20  2:20                         ` Alexander Holler
2011-02-19 19:46                       ` Wolfgang Denk
2011-02-19 19:39                     ` [U-Boot] [RFC][PATCH] ARMV7: Patch to fix hard float build issues Wolfgang Denk
2011-02-19 19:33             ` Wolfgang Denk
2011-02-19 19:32           ` Wolfgang Denk
2011-02-19 19:26         ` Wolfgang Denk
2011-02-18 22:41 ` Wolfgang Denk
2011-02-19 19:55 ` Wolfgang Denk
2011-02-21 10:36   ` Raghuveer Murthy

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=4D60027C.90003@free.fr \
    --to=albert.aribaud@free.fr \
    --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