From: Richard Earnshaw <rearnsha@arm.com>
To: James Greenhalgh <James.Greenhalgh@arm.com>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
Ramana Radhakrishnan <Ramana.Radhakrishnan@arm.com>
Subject: Re: [ARM 1/5 big.LITTLE] Add driver support for rewriting -mcpu names
Date: Tue, 17 Dec 2013 11:53:00 -0000 [thread overview]
Message-ID: <52B03B32.4050703@arm.com> (raw)
In-Reply-To: <1387276843-21770-2-git-send-email-james.greenhalgh@arm.com>
On 17/12/13 10:40, James Greenhalgh wrote:
>
> Hi,
>
> This patch adds machinery to the driver to ensure that big.LITTLE
> style tuning names are rewritten before they are passed to the
> assembler. This reduces the coupling needed between GCC versions
> and assembler versions.
>
> The rule is simple, we truncate the CPU name at the first '.'
> character we see.
>
> Thus -mcpu=cortex-a15.cortex-a7 would be truncated to -mcpu=cortex-a15.
>
> Bootstrapped on a ChromeBook and checked for an arm-none-eabi and
> an arm-none-linux-gnueabi build.
>
> Thanks,
> James
>
> ---
> gcc/
>
> 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
>
> * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
> (arm_rewrite_mcpu): Likewise.
> * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
> * config/arm/arm.h (BIG_LITTLE_SPEC): New.
> (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
> (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
> (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
> * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
>
OK.
R.
next prev parent reply other threads:[~2013-12-17 11:53 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-17 10:40 [Patch ARM] Add big.LITTLE tuning options James Greenhalgh
2013-12-17 10:41 ` [ARM 1/5 big.LITTLE] Add driver support for rewriting -mcpu names James Greenhalgh
2013-12-17 11:53 ` Richard Earnshaw [this message]
2014-01-15 20:36 ` Charles Baylis
2014-01-16 14:26 ` James Greenhalgh
2014-01-16 14:57 ` Charles Baylis
2014-01-21 10:48 ` [AArch64] fix big.LITTLE spec rewriting James Greenhalgh
2014-01-23 16:45 ` James Greenhalgh
2014-01-24 16:59 ` Marcus Shawcroft
2014-01-21 10:52 ` [ARM] " James Greenhalgh
2014-01-23 16:45 ` James Greenhalgh
2014-01-27 14:59 ` Ramana Radhakrishnan
2013-12-17 10:41 ` [ARM 2/5 big.LITTLE] Allow tuning parameters without unique tuning targets James Greenhalgh
2013-12-17 11:59 ` Richard Earnshaw
2013-12-17 10:41 ` [ARM 3/5 big.LITTLE] Add support for -mcpu=cortex-a15.cortex-a7 James Greenhalgh
2013-12-17 12:01 ` Richard Earnshaw
2013-12-17 10:41 ` [ARM 5/5 big.LITTLE] Add support for -mcpu=cortex-a57.cortex-a53 James Greenhalgh
2013-12-17 12:08 ` Richard Earnshaw
2013-12-17 10:41 ` [ARM 4/5 big.LITTLE] Add support for -mcpu=cortex-a57 James Greenhalgh
2013-12-17 12:07 ` Richard Earnshaw
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=52B03B32.4050703@arm.com \
--to=rearnsha@arm.com \
--cc=James.Greenhalgh@arm.com \
--cc=Ramana.Radhakrishnan@arm.com \
--cc=gcc-patches@gcc.gnu.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).