Skip to content

Commit 26b1464

Browse files
committed
target/i386: Use MO_128 for 16 byte atomics
Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Richard Henderson <[email protected]>
1 parent c21751f commit 26b1464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/i386/tcg/mem_helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void helper_cmpxchg16b(CPUX86State *env, target_ulong a0)
136136
Int128 newv = int128_make128(env->regs[R_EBX], env->regs[R_ECX]);
137137

138138
int mem_idx = cpu_mmu_index(env, false);
139-
MemOpIdx oi = make_memop_idx(MO_TEQ | MO_ALIGN_16, mem_idx);
139+
MemOpIdx oi = make_memop_idx(MO_TE | MO_128 | MO_ALIGN, mem_idx);
140140
Int128 oldv = cpu_atomic_cmpxchgo_le_mmu(env, a0, cmpv, newv, oi, ra);
141141

142142
if (int128_eq(oldv, cmpv)) {

0 commit comments

Comments
 (0)