Signed-off-by: Richard Henderson <[email protected]>
---
linux-user/hppa/cpu_loop.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
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:
--
2.43.0