target/ppc: Use atomic cmpxchg for STQCX
commit4a9b3c5dd30cfd548d447521d4ef1fdba6f0fcf2
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 26 Jun 2018 16:19:12 +0000 (26 09:19 -0700)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 2 Jul 2018 23:56:52 +0000 (3 09:56 +1000)
tree27a61359435eb949c9aa4b0e155b421028b53c29
parentf89ced5f556a06986d362dd41a99dfc4dc960fc1
target/ppc: Use atomic cmpxchg for STQCX

When running in a parallel context, we must use a helper in order
to perform the 128-bit atomic operation.  When running in a serial
context, do the compare before the store.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/helper.h
target/ppc/mem_helper.c
target/ppc/translate.c