This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libitm] Add SPARC bits
- From: David Miller <davem at davemloft dot net>
- To: ebotcazou at adacore dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 13 Feb 2012 20:14:07 -0500 (EST)
- Subject: Re: [libitm] Add SPARC bits
- References: <201202122115.26506.ebotcazou@adacore.com>
From: Eric Botcazou <ebotcazou@adacore.com>
Date: Sun, 12 Feb 2012 21:15:26 +0100
> +static inline void
> +cpu_relax (void)
> +{
> + __asm volatile ("" : : : "memory");
> +}
We probably want to do some nop'ish thing here which will yield the
cpu thread on Niagara cpus, I'd recommend something along the lines of
"rd %ccr, %g0" or "rd %y, %g0"