aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accel/tcg/ldst_atomicity.c.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel/tcg/ldst_atomicity.c.inc b/accel/tcg/ldst_atomicity.c.inc
index 2514899408..de70531a7a 100644
--- a/accel/tcg/ldst_atomicity.c.inc
+++ b/accel/tcg/ldst_atomicity.c.inc
@@ -833,7 +833,9 @@ static uint64_t store_whole_le16(void *pv, int size, Int128 val_le)
}
store_atom_insert_al16(pv - o, v, m);
- /* Unused if sz <= 64. */
+ if (sz <= 64) {
+ return 0;
+ }
return int128_gethi(val_le) >> (sz - 64);
}