From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] arch/arm: use EABIhf by default with VFP
Date: Sun, 25 Oct 2015 22:30:54 +0100 [thread overview]
Message-ID: <20151025213054.GK11692@free.fr> (raw)
In-Reply-To: <CA+sos78tx8Yh4DKjwtHte7E7TuixNfTnT6QgFUy2ffN-iqKa-Q@mail.gmail.com>
Beno?t, Peter, All,
On 2015-10-25 21:52 +0100, Beno?t Th?baudeau spake thusly:
> On Sun, Oct 25, 2015 at 9:40 PM, Peter Korsgaard <peter@korsgaard.com> wrote:
> >>>>>> "Beno?t" == Beno?t Th?baudeau <benoit.thebaudeau.dev@gmail.com> writes:
> >
> > > On Sun, Oct 25, 2015 at 7:55 PM, Peter Korsgaard <peter@korsgaard.com> wrote:
> > >>>>>>> "Beno?t" == Beno?t Th?baudeau <benoit.thebaudeau.dev@gmail.com> writes:
> > >>
> > >> > Set EABIhf as the default target ABI for the ARM processors that have or
> > >> > may have a VFP unit, since this ABI is the most efficient in that case.
> > >> > Of course, EABI can still be selected manually if needed.
> > >>
> > >> On a related note, should we default to thumb2 if the CPU supports it?
> >
> > > I would say:
> >
> > > choice
> > > prompt "ARM instruction set"
> > > default BR2_ARM_INSTRUCTIONS_ARM if BR2_ARM_CPU_HAS_ARM
> > > default BR2_ARM_INSTRUCTIONS_THUMBS2 if BR2_ARM_CPU_HAS_THUMBS2
> > > default BR2_ARM_INSTRUCTIONS_THUMBS if BR2_ARM_CPU_HAS_THUMBS
> >
> > I'm not sure it makes sense to default to thumb1 even if the CPU
> > supports it because of various compatibility issues
>
> It's the first default that wins, not the last one,
To be more precise: it's the first default which dependencies are
fullfiled that wins.
> so above it's ARM over Thumb1.
> > - So simply:
> >
> > default BR2_ARM_INSTRUCTIONS_THUMBS2 if BR2_ARM_CPU_HAS_THUMBS2
> >
> > (if no thumb2 is available, the first available option (ARM) is used).
>
> With ARM + Thumb2, I would rather use ARM to avoid compatibility
> issues, except on platforms very constrained on memory. On Cortex-M3,
> there's not even ARM. Or is it common to use Thumb2 on bigger
> platforms like Cortex-A*?
I agree that we should default to ARM if available. If not, then default
to Thumb2 if available. Finally, fallback to Thumb1.
We know that if neither ARM not Thumb2 is available, then we must have
Thumb1 available. otherwise it would not make sense to have an ARM CPU
that does not support any of those three.
So, slight ammendment to Beno?t's proposal:
choice
prompt "ARM instruction set"
default BR2_ARM_INSTRUCTIONS_ARM if BR2_ARM_CPU_HAS_ARM
default BR2_ARM_INSTRUCTIONS_THUMB2 if BR2_ARM_CPU_HAS_THUMB2
default BR2_ARM_INSTRUCTIONS_THUMB
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
prev parent reply other threads:[~2015-10-25 21:30 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-19 22:23 [Buildroot] rpi: image generation Benoît Thébaudeau
2015-08-20 7:59 ` Thomas Petazzoni
2015-08-20 14:30 ` Vivien Didelot
2015-08-22 20:01 ` [Buildroot] [PATCH 1/4] configs/raspberrypi: use EABIhf Benoît Thébaudeau
2015-08-22 20:01 ` [Buildroot] [PATCH 2/4] board/raspberrypi: prepare the image files for the target Benoît Thébaudeau
2015-10-17 11:45 ` Yann E. MORIN
2015-10-17 13:52 ` Benoît Thébaudeau
2015-08-22 20:01 ` [Buildroot] [PATCH 3/4] board/raspberrypi: generate a medium image Benoît Thébaudeau
2015-08-22 20:01 ` [Buildroot] [PATCH 4/4] board/raspberrypi: auto-expand rootfs on first boot Benoît Thébaudeau
2015-08-27 9:02 ` Benoît Thébaudeau
2015-08-27 21:22 ` Jérôme Pouiller
2015-08-28 10:36 ` Benoît Thébaudeau
2015-08-28 11:15 ` Benoît Thébaudeau
[not found] ` <4057940.fE2DsQZqLb@sagittea>
2015-08-31 9:11 ` Benoît Thébaudeau
2015-08-31 12:17 ` Floris Bos
2015-08-31 18:53 ` Benoît Thébaudeau
2015-08-31 13:25 ` Floris Bos
2015-08-31 19:05 ` Benoît Thébaudeau
2015-10-12 21:59 ` [Buildroot] [PATCH 1/4] configs/raspberrypi: use EABIhf Thomas Petazzoni
2015-10-12 23:17 ` Benoît Thébaudeau
2015-10-13 7:06 ` Arnout Vandecappelle
2015-10-15 20:11 ` Peter Korsgaard
2015-10-15 21:12 ` Peter Korsgaard
2015-10-25 15:19 ` [Buildroot] [PATCH] arch/arm: use EABIhf by default with VFP Benoît Thébaudeau
2015-10-25 18:53 ` Peter Korsgaard
2015-10-26 0:32 ` Thomas Petazzoni
2015-10-26 7:47 ` Peter Korsgaard
2015-10-26 8:25 ` Thomas Petazzoni
2015-10-26 8:51 ` Peter Korsgaard
2015-10-25 18:55 ` Peter Korsgaard
2015-10-25 20:27 ` Benoît Thébaudeau
2015-10-25 20:40 ` Peter Korsgaard
2015-10-25 20:52 ` Benoît Thébaudeau
2015-10-25 21:30 ` Yann E. MORIN [this message]
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=20151025213054.GK11692@free.fr \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/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