From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7I6m-00005G-G0 for qemu-devel@nongnu.org; Wed, 25 Oct 2017 05:36:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7I6l-0008Sq-Q1 for qemu-devel@nongnu.org; Wed, 25 Oct 2017 05:36:20 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:52548) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7I6l-0008Rh-KZ for qemu-devel@nongnu.org; Wed, 25 Oct 2017 05:36:19 -0400 Received: by mail-wr0-x243.google.com with SMTP id k62so23307947wrc.9 for ; Wed, 25 Oct 2017 02:36:19 -0700 (PDT) From: Richard Henderson Date: Wed, 25 Oct 2017 11:35:16 +0200 Message-Id: <20171025093535.10175-33-richard.henderson@linaro.org> In-Reply-To: <20171025093535.10175-1-richard.henderson@linaro.org> References: <20171025093535.10175-1-richard.henderson@linaro.org> Subject: [Qemu-devel] [PULL 32/51] target/sparc: check CF_PARALLEL instead of parallel_cpus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, "Emilio G. Cota" From: "Emilio G. Cota" Thereby decoupling the resulting translated code from the current state of the system. Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota Signed-off-by: Richard Henderson --- target/sparc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/sparc/translate.c b/target/sparc/translate.c index f2b5cdbf34..9dc41869a4 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -2437,7 +2437,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 (parallel_cpus) { + if (tb_cflags(dc->tb) & CF_PARALLEL) { gen_helper_exit_atomic(cpu_env); } else { TCGv_i32 r_asi = tcg_const_i32(da.asi); -- 2.13.6