summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEmilio G. Cota2016-06-27 21:01:51 +0200
committerRichard Henderson2016-10-26 17:29:01 +0200
commitae03f8de45427042ecd10b0941a005f21ecc064c (patch)
treec3f96a2815553b63ed80dfae9d25ceaeab751d60 /scripts
parenttcg: Emit barriers with parallel_cpus (diff)
downloadqemu-ae03f8de45427042ecd10b0941a005f21ecc064c.tar.gz
qemu-ae03f8de45427042ecd10b0941a005f21ecc064c.tar.xz
qemu-ae03f8de45427042ecd10b0941a005f21ecc064c.zip
target-i386: emulate LOCK'ed cmpxchg using cmpxchg helpers
The diff here is uglier than necessary. All this does is to turn FOO into: if (s->prefix & PREFIX_LOCK) { BAR } else { FOO } where FOO is the original implementation of an unlocked cmpxchg. [rth: Adjust unlocked cmpxchg to use movcond instead of branches. Adjust helpers to use atomic helpers.] Signed-off-by: Emilio G. Cota <cota@braap.org> Message-Id: <1467054136-10430-6-git-send-email-cota@braap.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions