mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 19:15:34 +00:00
target/sparc: check CF_PARALLEL instead of parallel_cpus
Thereby decoupling the resulting translated code from the current state of the system. Backports commit 87d757d60d66d5ee1608460b0f1e07e2b758db9c from qemu
This commit is contained in:
parent
3825687e9f
commit
915a8a92c8
|
@ -2600,7 +2600,7 @@ static void gen_ldstub_asi(DisasContext *dc, TCGv dst, TCGv addr, int insn)
|
||||||
default:
|
default:
|
||||||
/* ??? In theory, this should be raise DAE_invalid_asi.
|
/* ??? In theory, this should be raise DAE_invalid_asi.
|
||||||
But the SS-20 roms do ldstuba [%l0] #ASI_M_CTL, %o1. */
|
But the SS-20 roms do ldstuba [%l0] #ASI_M_CTL, %o1. */
|
||||||
if (dc->uc->parallel_cpus) {
|
if (tb_cflags(dc->tb) & CF_PARALLEL) {
|
||||||
gen_helper_exit_atomic(tcg_ctx, tcg_ctx->cpu_env);
|
gen_helper_exit_atomic(tcg_ctx, tcg_ctx->cpu_env);
|
||||||
} else {
|
} else {
|
||||||
TCGv_i32 r_asi = tcg_const_i32(tcg_ctx, da.asi);
|
TCGv_i32 r_asi = tcg_const_i32(tcg_ctx, da.asi);
|
||||||
|
|
Loading…
Reference in a new issue