On 12/07/2017 08:53 AM, David Hildenbrand wrote: > +static ExitStatus op_ni(DisasContext *s, DisasOps *o) > +{ > + o->in1 = tcg_temp_new_i64(); > + /* Perform the atomic operation in memory. */ > + tcg_gen_atomic_fetch_and_i64(o->in1, o->addr1, o->in2, get_mem_index(s), > + MO_UB); > + /* We need to recompute the operation for setting CC. */ > + tcg_gen_and_i64(o->out, o->in1, o->in2); > + return NO_EXIT; > +}
Similarly, check interlocked-access-facility-2? r~