Re: [Qemu-devel] [PATCH v5] target-sparc: Add and use CPU_FEATURE_CASA

2014-03-10 Thread Richard Henderson
On 03/09/2014 04:02 AM, Sebastian Huber wrote: > #endif > +#if !defined(CONFIG_USER_ONLY) || defined(TARGET_SPARC64) > +case 0x3c: /* V9 or LEON3 casa */ > +CHECK_IU_FEATURE(dc, CASA); > +#ifndef TARGET_SPARC64 > +if (IS_IMM) { > +

Re: [Qemu-devel] [PATCH v5] target-sparc: Add and use CPU_FEATURE_CASA

2014-03-09 Thread Mark Cave-Ayland
On 09/03/14 11:02, Sebastian Huber wrote: The LEON3 processor has support for the CASA instruction which is normally only available for SPARC V9 processors. Binutils 2.24 and GCC 4.9 will support this instruction for LEON3. GCC uses it to generate C11 atomic operations. The CAS synthetic instru

[Qemu-devel] [PATCH v5] target-sparc: Add and use CPU_FEATURE_CASA

2014-03-09 Thread Sebastian Huber
The LEON3 processor has support for the CASA instruction which is normally only available for SPARC V9 processors. Binutils 2.24 and GCC 4.9 will support this instruction for LEON3. GCC uses it to generate C11 atomic operations. The CAS synthetic instruction uses an ASI of 0x80. If TARGET_SPARC64