On 12/07/2017 08:53 AM, David Hildenbrand wrote: > +static ExitStatus op_asi(DisasContext *s, DisasOps *o) > +{ > + o->in1 = tcg_temp_new_i64(); > + /* Perform the atomic addition in memory. */ > + tcg_gen_atomic_fetch_add_i64(o->in1, o->addr1, o->in2, get_mem_index(s), > + s->insn->data); > + /* However, we need to recompute the addition for setting CC. */ > + tcg_gen_add_i64(o->out, o->in1, o->in2); > + return NO_EXIT; > +}
Is it worth conditionalizing the atomic operation on having interlocked-access-facility-1 enabled? r~