mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/m68k: check CF_PARALLEL instead of parallel_cpus
Thereby decoupling the resulting translated code from the current state of the system. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
b5e3b4c2ac
commit
f0ddf11b23
3 changed files with 31 additions and 15 deletions
|
@ -2312,7 +2312,11 @@ DISAS_INSN(cas2w)
|
|||
(REG(ext1, 6) << 3) |
|
||||
(REG(ext2, 0) << 6) |
|
||||
(REG(ext1, 0) << 9));
|
||||
gen_helper_cas2w(cpu_env, regs, addr1, addr2);
|
||||
if (tb_cflags(s->tb) & CF_PARALLEL) {
|
||||
gen_helper_exit_atomic(cpu_env);
|
||||
} else {
|
||||
gen_helper_cas2w(cpu_env, regs, addr1, addr2);
|
||||
}
|
||||
tcg_temp_free(regs);
|
||||
|
||||
/* Note that cas2w also assigned to env->cc_op. */
|
||||
|
@ -2358,7 +2362,11 @@ DISAS_INSN(cas2l)
|
|||
(REG(ext1, 6) << 3) |
|
||||
(REG(ext2, 0) << 6) |
|
||||
(REG(ext1, 0) << 9));
|
||||
gen_helper_cas2l(cpu_env, regs, addr1, addr2);
|
||||
if (tb_cflags(s->tb) & CF_PARALLEL) {
|
||||
gen_helper_cas2l_parallel(cpu_env, regs, addr1, addr2);
|
||||
} else {
|
||||
gen_helper_cas2l(cpu_env, regs, addr1, addr2);
|
||||
}
|
||||
tcg_temp_free(regs);
|
||||
|
||||
/* Note that cas2l also assigned to env->cc_op. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue