target-alpha: Emulate LL/SC using cmpxchg helpers
commited2839166c21e001d15868f4d9591a21aaebd547
authorRichard Henderson <rth@twiddle.net>
Fri, 2 Sep 2016 19:52:28 +0000 (2 12:52 -0700)
committerRichard Henderson <rth@twiddle.net>
Wed, 26 Oct 2016 15:29:02 +0000 (26 08:29 -0700)
treee63b55476274f12975030d67772d4a4db99c6f5e
parent6a73ecf5cfcd39b7afb5d6a24174730eac49d4b5
target-alpha: Emulate LL/SC using cmpxchg helpers

Emulating LL/SC with cmpxchg is not correct, since it can
suffer from the ABA problem.  However, portable parallel
code is written assuming only cmpxchg which means that in
practice this is a viable alternative.

Signed-off-by: Richard Henderson <rth@twiddle.net>
linux-user/main.c
target-alpha/cpu.h
target-alpha/helper.c
target-alpha/machine.c
target-alpha/translate.c