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) { > + goto illegal_insn; > + } > + if (!supervisor(dc)) { > + goto priv_insn; > + } > +#endif > + rs2 = GET_FIELD(insn, 27, 31); > + cpu_src2 = gen_load_gpr(dc, rs2); > + gen_cas_asi(dc, cpu_addr, cpu_src2, insn, rd); > + break; > +#endif
Might as well put the feature check inside the ifndef sparc64, since we know that sparc64 always has the feature. Otherwise, Reviewed-by: Richard Henderson <r...@twiddle.net> r~