This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH-v4] [SPARC] Add a workaround for the LEON3FT store-store errata
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Daniel Cederman <cederman at gaisler dot com>
- Cc: gcc-patches at gcc dot gnu dot org, sebastian dot huber at embedded-brains dot de, davem at davemloft dot net, daniel at gaisler dot com
- Date: Tue, 11 Jul 2017 09:21:51 +0200
- Subject: Re: [PATCH-v4] [SPARC] Add a workaround for the LEON3FT store-store errata
- Authentication-results: sourceware.org; auth=none
- References: <20170707114255.14273-1-cederman@gaisler.com>
> 2017-07-07 Daniel Cederman <cederman@gaisler.com>
>
> * config/sparc/sparc.c (sparc_do_work_around_errata): Insert NOP
> instructions to prevent sequences that can trigger the store-store
> errata for certain LEON3FT processors.
> (sparc_option_override): -mfix-ut699, -mfix-ut700, and
> -mfix-gr712rc enables the errata workaround.
> * config/sparc/sparc.md: Prevent stores in delay slot.
> * config/sparc/sparc.opt: Add -mfix-ut700 and -mfix-gr712rc flag.
> * doc/invoke.texi: Document -mfix-ut700 and -mfix-gr712rc flag.
Applied without the undocumented tweaks to the divdf3_fix and sqrtdf2_fix
patterns. Why are 2 nops necessary here? The stored value doesn't matter.
And the length attribute should be adjusted if nops are added to the pattern.
--
Eric Botcazou