OSDN Git Service

linux-user/arm: Implement __kernel_cmpxchg64 with host atomics
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 23 Mar 2022 00:58:39 +0000 (17:58 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 23 Mar 2022 15:53:17 +0000 (16:53 +0100)
commit330ea9d1d819680ac7501457220b8cd1c29f9d2f
tree3b45c6188c68a5c7683bc0da6e1387a8161d3e5f
parent7f4f0d9ea87097a31b36bcc52b7368efed35593c
linux-user/arm: Implement __kernel_cmpxchg64 with host atomics

If CONFIG_ATOMIC64, we can use a host cmpxchg and provide
atomicity across processes; otherwise we have no choice but
to continue using start/end_exclusive.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220323005839.94327-4-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/arm/cpu_loop.c