Re: [Qemu-devel] [PATCH v2 24/27] target-arm: emulate aarch64's LL/SC using cmpxchg helpers

2016-07-07 Thread Emilio G. Cota
On Fri, Jul 01, 2016 at 10:04:50 -0700, Richard Henderson wrote: (snip) > [rth: Rearrange 128-bit cmpxchg helper. Enforce alignment on LL.] > > Signed-off-by: Emilio G. Cota > Message-Id: <1467054136-10430-28-git-send-email-c...@braap.org> > Signed-off-by: Richard Henderson > --- > target-arm/

[Qemu-devel] [PATCH v2 24/27] target-arm: emulate aarch64's LL/SC using cmpxchg helpers

2016-07-01 Thread Richard Henderson
From: "Emilio G. Cota" Emulating LL/SC with cmpxchg is not correct, since it can suffer from the ABA problem. Portable parallel code, however, is written assuming only cmpxchg--and not LL/SC--is available. This means that in practice emulating LL/SC with cmpxchg is a viable alternative. The appe