[SPARC] Errata workaround for GRLIB-TN-0011
authorDaniel Cederman <cederman@gaisler.com>
Wed, 29 Nov 2017 15:20:48 +0000 (15:20 +0000)
committerDaniel Hellstrom <danielh@gcc.gnu.org>
Wed, 29 Nov 2017 15:20:48 +0000 (16:20 +0100)
commitaed173734df52b9c48425840c0977c34c23a882a
treea51fe30ab1b4d438efdacf076686e750da4ba9c8
parentdcacda0cc1c9ecd23c15e8403e8025129502fed9
[SPARC] Errata workaround for GRLIB-TN-0011

This patch provides a workaround for the errata described in GRLIB-TN-0011.

If the workaround is enabled it will:

 * Insert .align 16 before atomic instructions (swap, ldstub, casa).

It is applicable to GR712RC.

2017-11-29  Daniel Cederman  <cederman@gaisler.com>

gcc/
* config/sparc/sync.md (swapsi): 16-byte align if sparc_fix_gr712rc.
(atomic_compare_and_swap_leon3_1): Likewise.
(ldstub): Likewise.

From-SVN: r255235
gcc/ChangeLog
gcc/config/sparc/sync.md