From 175a5223addbd0c31f3851ac9ac62d1e8ebf06ed Mon Sep 17 00:00:00 2001 From: "Emilio G. Cota" Date: Mon, 6 May 2019 00:43:17 -0400 Subject: [PATCH] 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 --- qemu/target/sparc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/target/sparc/translate.c b/qemu/target/sparc/translate.c index b184bb07..0a4f2242 100644 --- a/qemu/target/sparc/translate.c +++ b/qemu/target/sparc/translate.c @@ -2600,7 +2600,7 @@ static void gen_ldstub_asi(DisasContext *dc, TCGv dst, TCGv addr, int insn) default: /* ??? In theory, this should be raise DAE_invalid_asi. But the SS-20 roms do ldstuba [%l0] #ASI_M_CTL, %o1. */ - if (dc->uc->parallel_cpus) { + if (tb_cflags(dc->base.tb) & CF_PARALLEL) { gen_helper_exit_atomic(tcg_ctx, tcg_ctx->cpu_env); } else { TCGv_i32 r_asi = tcg_const_i32(tcg_ctx, da.asi);