mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Rouven Czerwinski <rouven@czerwinskis.de>
To: Michael Tretter <m.tretter@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 2/3] ARM: aarch64: compile with general-regs-only
Date: Fri, 23 Nov 2018 14:48:38 +0100	[thread overview]
Message-ID: <87r2fb52h5.fsf@czerwinskis.de> (raw)
In-Reply-To: <20181123133553.24761-3-m.tretter@pengutronix.de>


Michael Tretter <m.tretter@pengutronix.de> writes:

> Without this flag, gcc generates code to save the Q/V registers to the
> stack for handling the va_list in pr_print(). Saving the registers is
> use useless, as the registers are never restored, but this hangs the
  ^ nit: this use looks lost.
> CPU.
>
> Follow the Linux arch/arm64/Makefile and the general-regs-only flag, to
> prevent usage of floating point and Advanced SIMD register.
>
> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> ---
>  arch/arm/Makefile | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/Makefile b/arch/arm/Makefile
> index 5db67b9db8..50958b787f 100644
> --- a/arch/arm/Makefile
> +++ b/arch/arm/Makefile
> @@ -27,6 +27,10 @@ else
>  CFLAGS += -mstrict-align
>  endif
>  
> +# Prevent use of floating point and Advanced SIMD registers.
> +ifeq ($(CONFIG_CPU_V8),y)
> +CFLAGS += -mgeneral-regs-only
> +endif
>  
>  # This selects which instruction set is used.
>  # Note that GCC does not numerically define an architecture version

- Rouven

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2018-11-23 13:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-23 13:35 [PATCH 0/3] Xilinx Zynq Ultrascale+ MPSoC support Michael Tretter
2018-11-23 13:35 ` [PATCH 1/3] ARM: lib64: .gitignore barebox.lds Michael Tretter
2018-11-23 13:35 ` [PATCH 2/3] ARM: aarch64: compile with general-regs-only Michael Tretter
2018-11-23 13:48   ` Rouven Czerwinski [this message]
2018-11-23 13:35 ` [PATCH 3/3] ARM: zynqmp: add support for Xilinx ZCU104 board Michael Tretter
2018-11-23 13:55   ` Rouven Czerwinski
2018-11-26 10:37     ` Roland Hieber
2018-11-23 14:38   ` Michael Tretter
2018-11-23 15:08   ` Oleksij Rempel
2018-11-23 18:27     ` Michael Tretter
2018-11-23 18:41       ` Oleksij Rempel

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=87r2fb52h5.fsf@czerwinskis.de \
    --to=rouven@czerwinskis.de \
    --cc=barebox@lists.infradead.org \
    --cc=m.tretter@pengutronix.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