mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:15:07 +00:00
target/arm: Check HAVE_CMPXCHG128 at translate time
Backports part of commit 62823083b8a2da8e126bb82b7b70f68eaa27b338 from qemu
This commit is contained in:
parent
65beab9dd9
commit
af6c47e192
|
@ -686,9 +686,7 @@ void HELPER(casp_le_parallel)(CPUARMState *env, uint32_t rs, uint64_t addr,
|
||||||
int mem_idx;
|
int mem_idx;
|
||||||
TCGMemOpIdx oi;
|
TCGMemOpIdx oi;
|
||||||
|
|
||||||
if (!HAVE_CMPXCHG128) {
|
assert(HAVE_CMPXCHG128);
|
||||||
cpu_loop_exit_atomic(ENV_GET_CPU(env), ra);
|
|
||||||
}
|
|
||||||
|
|
||||||
mem_idx = cpu_mmu_index(env, false);
|
mem_idx = cpu_mmu_index(env, false);
|
||||||
oi = make_memop_idx(MO_LEQ | MO_ALIGN_16, mem_idx);
|
oi = make_memop_idx(MO_LEQ | MO_ALIGN_16, mem_idx);
|
||||||
|
@ -710,9 +708,7 @@ void HELPER(casp_be_parallel)(CPUARMState *env, uint32_t rs, uint64_t addr,
|
||||||
int mem_idx;
|
int mem_idx;
|
||||||
TCGMemOpIdx oi;
|
TCGMemOpIdx oi;
|
||||||
|
|
||||||
if (!HAVE_CMPXCHG128) {
|
assert(HAVE_CMPXCHG128);
|
||||||
cpu_loop_exit_atomic(ENV_GET_CPU(env), ra);
|
|
||||||
}
|
|
||||||
|
|
||||||
mem_idx = cpu_mmu_index(env, false);
|
mem_idx = cpu_mmu_index(env, false);
|
||||||
oi = make_memop_idx(MO_LEQ | MO_ALIGN_16, mem_idx);
|
oi = make_memop_idx(MO_LEQ | MO_ALIGN_16, mem_idx);
|
||||||
|
|
Loading…
Reference in a new issue