From: Richard Henderson Date: Thu, 8 Jan 2026 00:38:21 +0000 (+1100) Subject: linux-user/hppa: Drop CONFIG_ATOMIC64 test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1de2343b24595b523e6a87e033e5bb425fc9f43;p=thirdparty%2Fqemu.git linux-user/hppa: Drop CONFIG_ATOMIC64 test Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson --- diff --git a/linux-user/hppa/cpu_loop.c b/linux-user/hppa/cpu_loop.c index 356cb48acc..e5c0f52d94 100644 --- a/linux-user/hppa/cpu_loop.c +++ b/linux-user/hppa/cpu_loop.c @@ -83,20 +83,8 @@ static abi_ulong hppa_lws(CPUHPPAState *env) uint64_t o64, n64, r64; o64 = *(uint64_t *)g2h(cs, old); n64 = *(uint64_t *)g2h(cs, new); -#ifdef CONFIG_ATOMIC64 - r64 = qatomic_cmpxchg__nocheck((aligned_uint64_t *)g2h(cs, addr), - o64, n64); + r64 = qatomic_cmpxchg((aligned_uint64_t *)g2h(cs, addr), o64, n64); ret = r64 != o64; -#else - start_exclusive(); - r64 = *(uint64_t *)g2h(cs, addr); - ret = 1; - if (r64 == o64) { - *(uint64_t *)g2h(cs, addr) = n64; - ret = 0; - } - end_exclusive(); -#endif } break; default: