From patchwork Mon Oct 16 17:25:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 10009503 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C83D4601E7 for ; Mon, 16 Oct 2017 17:54:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB1AA28608 for ; Mon, 16 Oct 2017 17:54:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ACEE82864A; Mon, 16 Oct 2017 17:54:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8201228608 for ; Mon, 16 Oct 2017 17:54:48 +0000 (UTC) Received: from localhost ([::1]:34407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e49bD-0008Ib-Nj for patchwork-qemu-devel@patchwork.kernel.org; Mon, 16 Oct 2017 13:54:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e49AN-0002cv-3y for qemu-devel@nongnu.org; Mon, 16 Oct 2017 13:27:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e49AL-0003mc-1g for qemu-devel@nongnu.org; Mon, 16 Oct 2017 13:27:03 -0400 Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]:43803) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e49AK-0003lt-Rx for qemu-devel@nongnu.org; Mon, 16 Oct 2017 13:27:00 -0400 Received: by mail-pf0-x233.google.com with SMTP id a8so15844580pfc.0 for ; Mon, 16 Oct 2017 10:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XrDOWbNcFJTmBQzRovNO+7qJou3wvKXhrlz+xDEDj2I=; b=c39tBE9kuxeZSWVu+nUoyX+vfQ59dyyCT7g5A7MXYQETvX4VE0zcZH5pH25OvIm+SV mujqHIBt4QUGTduF+kKj4qaxwSDPxPV6Xl/GlExBn+RT3fBqUiY1zHOmX7c3WaQJSvTX 6QD+37Ocdprm67F4DtpmGV0CBRZkK4xuH7ukI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XrDOWbNcFJTmBQzRovNO+7qJou3wvKXhrlz+xDEDj2I=; b=d8cI3ofovvBNl+ZX8XZz34ISsOAbGXsfr3Eh5+l7jUuuTZiTLyv4MS5DvfaaueowtO M1TKkpTUaXCoF1UJgB6+yjn7WulI7cy/x5z3UbAedQfezaUxI6AmaGmUOfVHzuX5oPdf /5kgRek33YYOUOL5Jk0jnlp/4/GuHBt/yJ5bhtXGqMtEf7CK8dwBw5Qg4GfL7y9sPuj6 qqEj4dCnfGYDVGxIO0r7PNd4rk+ejiBGntQdfRtSXp1yrTcESQyMUuImill2QB2fQ+4L YhY0kaxMg8ikdKF5tZNmcB/C9p2+Y1/ofAb9uvbvzPYUQimAQFSwvRVNBwH/67EeKyWT QvoA== X-Gm-Message-State: AMCzsaVKen4gsUd1iibQ474Nv+uK9eL5QFeZHKhnLjTCaJYy734VY/9P ehSn+etfVIb5D70UBxzmYJ49lCZGILw= X-Google-Smtp-Source: AOwi7QDGbSDXrX4J7aNx7W4RSudsTdZUszvSrauZLgnqVlQYxH9P7RYUqUsC86VB3xslKqUwgGfJmQ== X-Received: by 10.98.57.215 with SMTP id u84mr9294600pfj.300.1508174819642; Mon, 16 Oct 2017 10:26:59 -0700 (PDT) Received: from cloudburst.twiddle.net (97-126-104-76.tukw.qwest.net. [97.126.104.76]) by smtp.gmail.com with ESMTPSA id i187sm5594249pfc.96.2017.10.16.10.26.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Oct 2017 10:26:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 16 Oct 2017 10:25:52 -0700 Message-Id: <20171016172609.23422-34-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171016172609.23422-1-richard.henderson@linaro.org> References: <20171016172609.23422-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::233 Subject: [Qemu-devel] [PATCH v6 33/50] target/sparc: check CF_PARALLEL instead of parallel_cpus X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cota@braap.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 05414ce8a8..0669d4e8e5 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -2442,7 +2442,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);