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: 115966 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3958446qgn; Mon, 16 Oct 2017 10:55:32 -0700 (PDT) X-Received: by 10.200.8.53 with SMTP id u50mr16332064qth.260.1508176532562; Mon, 16 Oct 2017 10:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508176532; cv=none; d=google.com; s=arc-20160816; b=JZx6HqStUCHHM5647SXnGkIwYLt9IbKLvgR1F1g8eDNRkB+F5FHjfiPMCnlIVYIB4O 7BwGuKBxgDhRYDnGf3QQmInn0+xBsh49770daP6NIJZsZm18jFXXc9Pf7Jj+mlkBFTZW PPIk8JSPLmUB20RsDw5k1SY3vY1t02jXawtjXW/K5DAf5r/AjHOJpFTHp2VU8DIkdUPk yisrbTaxg/FSL6HKnr9n54iFqUEQp/dIPPBZqJ455RSi/mbZMFrXs2YgyAiWY6M+/4Eg 9RQ55/Gc3v6WFAvU5ypm9SUmyBgB5hc/UTEpOL5u2k2B3s/rhm/H001GUShxTIkndVb4 u5jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=XrDOWbNcFJTmBQzRovNO+7qJou3wvKXhrlz+xDEDj2I=; b=PGhJkyNXpMnlH0QVtpG7p0YUCWBTZuwYCSbgJ9KkN3+J6zegpDVFg2lnlvU8QDU7Lu pKFpGujrEJBNqf8D/dnSCnbWkAZumsPfPkR220eBz0Z68a3MXbAfBNzms2efqCsf5y27 AHhHzJLAi9uL8B94Mv0JVDTW21+sYOeMlefBowGS+pdtuTWOEQBOTlMHRFzp9U16c+t8 j0R0qxW3VKkA0TrrHRRJiOPcMkf17tBTEBJsRfPOYF8mXTGDiVomJUk1/1tLdF7vbwlx 5/6ZIVSx8WaaVmgC6HVZrZe+zJ2qHZQhD08Fp2ja45aexnCrsrBGvT3xKNAChNLm9aFv 60PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=c39tBE9k; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id i185si2743895qka.198.2017.10.16.10.55.32 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 16 Oct 2017 10:55:32 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=c39tBE9k; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:34412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e49bu-000137-H0 for patch@linaro.org; Mon, 16 Oct 2017 13:55:30 -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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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(-) -- 2.13.6 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);