OSDN Git Service

tcg: Split out tcg_gen_nonatomic_cmpxchg_i{32,64}
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 10 Nov 2022 06:07:04 +0000 (16:07 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 4 Feb 2023 16:19:42 +0000 (06:19 -1000)
commitd1beee4da1dbbc0ce1bc42b38752366eed4babec
tree25847566e044b980acb4d407160d8423f1429dce
parent123ae5683c9e7815857304fd2f21664621c90a13
tcg: Split out tcg_gen_nonatomic_cmpxchg_i{32,64}

Normally this is automatically handled by the CF_PARALLEL checks
with in tcg_gen_atomic_cmpxchg_i{32,64}, but x86 has a special
case of !PREFIX_LOCK where it always wants the non-atomic version.

Split these out so that x86 does not have to roll its own.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/tcg/tcg-op.h
tcg/tcg-op.c