Re: [PATCH 3/4] [SPARC] Errata workaround for GRLIB-TN-0010

2017-11-24 Thread Eric Botcazou
> 2017-11-17 Daniel Cederman > > * config/sparc/sparc.c (atomic_insn_p): New function. > (sparc_do_work_around_errata): Insert NOP instructions to > prevent sequences that could trigger the TN-0010 errata for > UT700. > * config/sparc/sync.md (atomic_compare_and_sw

[PATCH 3/4] [SPARC] Errata workaround for GRLIB-TN-0010

2017-11-20 Thread Daniel Cederman
This patch provides a workaround for the errata described in GRLIB-TN-0010. If the workaround is enabled it will: * Insert a NOP between load instruction and atomic instruction (swap, ldstub, casa). * Insert a NOP at branch target if load in delay slot and atomic instruction at branch target