diff options
author | Richard Henderson <rth@twiddle.net> | 2016-09-02 12:52:28 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2016-10-26 08:29:02 -0700 |
commit | ed2839166c21e001d15868f4d9591a21aaebd547 (patch) | |
tree | e63b55476274f12975030d67772d4a4db99c6f5e /target-alpha/machine.c | |
parent | 6a73ecf5cfcd39b7afb5d6a24174730eac49d4b5 (diff) |
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>
Diffstat (limited to 'target-alpha/machine.c')
-rw-r--r-- | target-alpha/machine.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/target-alpha/machine.c b/target-alpha/machine.c index 710b7835b4..b99a123a39 100644 --- a/target-alpha/machine.c +++ b/target-alpha/machine.c @@ -45,8 +45,6 @@ static VMStateField vmstate_env_fields[] = { VMSTATE_UINTTL(unique, CPUAlphaState), VMSTATE_UINTTL(lock_addr, CPUAlphaState), VMSTATE_UINTTL(lock_value, CPUAlphaState), - /* Note that lock_st_addr is not saved; it is a temporary - used during the execution of the st[lq]_c insns. */ VMSTATE_UINT8(ps, CPUAlphaState), VMSTATE_UINT8(intr_flag, CPUAlphaState), |