This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: MIPS atomic memory operations (A.K.A PR 33479).
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: Ralf Baechle <ralf at linux-mips dot org>
- Cc: David Daney <ddaney at avtrex dot com>, Richard Sandiford <rsandifo at nildram dot co dot uk>, GCC Mailing List <gcc at gcc dot gnu dot org>, linux-mips at linux-mips dot org
- Date: Wed, 19 Sep 2007 18:07:56 +0100 (BST)
- Subject: Re: MIPS atomic memory operations (A.K.A PR 33479).
- References: <46F06980.4080500@avtrex.com> <20070919165809.GA14767@linux-mips.org>
On Wed, 19 Sep 2007, Ralf Baechle wrote:
> Please make this loop closure branch a branch-likely. This is necessary
> as a errata workaround for some processors.
Do we emulate them for MIPS I? We do emulate "ll" and "sc" and adding
"sync" is easy (as a no-op as support for R3000 SMP is unlikely to ever
happen). Adding branches-likely, hmm... Even though we do have logic to
do that as a part of the FP emulator.
A workaround for a CPU erratum fits within the "-mfix-*" option family
quite well though.
Maciej