sparc: Prevent atomic instructions in beginning of functions for UT700
authorDaniel Cederman <cederman@gaisler.com>
Mon, 12 Oct 2020 06:50:35 +0000 (08:50 +0200)
committerDaniel Hellstrom <daniel@gaisler.com>
Thu, 16 Sep 2021 11:05:50 +0000 (13:05 +0200)
commitd4aa16699d4bcf9d335a206d3d8f6c1a80142aab
tree4ac78e2b3e4b0d41c3e005138a7bc2525c0a3528
parent6d0c97b19a306cf192ef9e8d0222635192dbc710
sparc: Prevent atomic instructions in beginning of functions for UT700

A call to the function might have a load instruction in the delay slot
and a load followed by an atomic function could cause a deadlock.

gcc/ChangeLog:

* config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
functions with atomic instruction in the UT700 errata workaround.
gcc/config/sparc/sparc.c