Reviewed-by: Pierrick Bouvier <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
---
accel/tcg/translator.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c
index 034f2f359e..f3eddcbb2e 100644
--- a/accel/tcg/translator.c
+++ b/accel/tcg/translator.c
@@ -352,15 +352,13 @@ static bool translator_ld(CPUArchState *env,
DisasContextBase *db,
return true;
}
break;
-#ifdef CONFIG_ATOMIC64
case 8:
if (QEMU_IS_ALIGNED(pc, 8)) {
- uint64_t t = qatomic_read__nocheck((uint64_t *)host);
+ uint64_t t = qatomic_read((uint64_t *)host);
stq_he_p(dest, t);
return true;
}
break;
-#endif
}
/* Unaligned or partial read from the second page is not atomic. */
memcpy(dest, host, len);
--
2.43.0