[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 30/66] target/arm: Use MO_128 for 16 byte atomics
From: |
Richard Henderson |
Subject: |
[PATCH v3 30/66] target/arm: Use MO_128 for 16 byte atomics |
Date: |
Wed, 18 Aug 2021 09:18:44 -1000 |
Cc: qemu-arm@nongnu.org
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/helper-a64.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/target/arm/helper-a64.c b/target/arm/helper-a64.c
index 13d1e3f808..f06399f351 100644
--- a/target/arm/helper-a64.c
+++ b/target/arm/helper-a64.c
@@ -560,7 +560,7 @@ uint64_t HELPER(paired_cmpxchg64_le_parallel)(CPUARMState
*env, uint64_t addr,
assert(HAVE_CMPXCHG128);
mem_idx = cpu_mmu_index(env, false);
- oi = make_memop_idx(MO_LEQ | MO_ALIGN_16, mem_idx);
+ oi = make_memop_idx(MO_LE | MO_128 | MO_ALIGN, mem_idx);
cmpv = int128_make128(env->exclusive_val, env->exclusive_high);
newv = int128_make128(new_lo, new_hi);
@@ -630,7 +630,7 @@ uint64_t HELPER(paired_cmpxchg64_be_parallel)(CPUARMState
*env, uint64_t addr,
assert(HAVE_CMPXCHG128);
mem_idx = cpu_mmu_index(env, false);
- oi = make_memop_idx(MO_BEQ | MO_ALIGN_16, mem_idx);
+ oi = make_memop_idx(MO_BE | MO_128 | MO_ALIGN, mem_idx);
/*
* High and low need to be switched here because this is not actually a
@@ -656,7 +656,7 @@ void HELPER(casp_le_parallel)(CPUARMState *env, uint32_t
rs, uint64_t addr,
assert(HAVE_CMPXCHG128);
mem_idx = cpu_mmu_index(env, false);
- oi = make_memop_idx(MO_LEQ | MO_ALIGN_16, mem_idx);
+ oi = make_memop_idx(MO_LE | MO_128 | MO_ALIGN, mem_idx);
cmpv = int128_make128(env->xregs[rs], env->xregs[rs + 1]);
newv = int128_make128(new_lo, new_hi);
@@ -677,7 +677,7 @@ void HELPER(casp_be_parallel)(CPUARMState *env, uint32_t
rs, uint64_t addr,
assert(HAVE_CMPXCHG128);
mem_idx = cpu_mmu_index(env, false);
- oi = make_memop_idx(MO_LEQ | MO_ALIGN_16, mem_idx);
+ oi = make_memop_idx(MO_LE | MO_128 | MO_ALIGN, mem_idx);
cmpv = int128_make128(env->xregs[rs + 1], env->xregs[rs]);
newv = int128_make128(new_lo, new_hi);
--
2.25.1
- [PATCH v3 32/66] target/ppc: Use MO_128 for 16 byte atomics, (continued)
- [PATCH v3 32/66] target/ppc: Use MO_128 for 16 byte atomics, Richard Henderson, 2021/08/18
- [PATCH v3 24/66] tcg: Rename TCGMemOpIdx to MemOpIdx, Richard Henderson, 2021/08/18
- [PATCH v3 35/66] accel/tcg: Add cpu_{ld,st}*_mmu interfaces, Richard Henderson, 2021/08/18
- [PATCH v3 36/66] accel/tcg: Move cpu_atomic decls to exec/cpu_ldst.h, Richard Henderson, 2021/08/18
- [PATCH v3 26/66] trace/mem: Pass MemOpIdx to trace_mem_get_info, Richard Henderson, 2021/08/18
- [PATCH v3 28/66] plugins: Reorg arguments to qemu_plugin_vcpu_mem_cb, Richard Henderson, 2021/08/18
- [PATCH v3 30/66] target/arm: Use MO_128 for 16 byte atomics,
Richard Henderson <=
- [PATCH v3 37/66] target/mips: Use cpu_*_data_ra for msa load/store, Richard Henderson, 2021/08/18
- [PATCH v3 33/66] target/s390x: Use MO_128 for 16 byte atomics, Richard Henderson, 2021/08/18
- [PATCH v3 34/66] target/hexagon: Implement cpu_mmu_index, Richard Henderson, 2021/08/18
- [PATCH v3 31/66] target/i386: Use MO_128 for 16 byte atomics, Richard Henderson, 2021/08/18
- [PATCH v3 38/66] target/mips: Use 8-byte memory ops for msa load/store, Richard Henderson, 2021/08/18
- [PATCH v3 39/66] target/s390x: Use cpu_*_mmu instead of helper_*_mmu, Richard Henderson, 2021/08/18
- [PATCH v3 40/66] target/sparc: Use cpu_*_mmu instead of helper_*_mmu, Richard Henderson, 2021/08/18
- [PATCH v3 41/66] target/arm: Use cpu_*_mmu instead of helper_*_mmu, Richard Henderson, 2021/08/18
- [PATCH v3 42/66] tcg: Move helper_*_mmu decls to tcg/tcg-ldst.h, Richard Henderson, 2021/08/18
- [PATCH v3 43/66] tcg: Add helper_unaligned_{ld, st} for user-only sigbus, Richard Henderson, 2021/08/18