From patchwork Wed Oct 25 09:35:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 117059 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp641933qgn; Wed, 25 Oct 2017 02:46:49 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QCohsGumBkDb68Gfo3k7MnOe6JHSgSoXej5Y6P57+FVZHwwnSR+r7BtqfqRAw1gJdI9I3f X-Received: by 10.37.9.71 with SMTP id u7mr847548ybm.283.1508924808997; Wed, 25 Oct 2017 02:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508924808; cv=none; d=google.com; s=arc-20160816; b=M/F8Glfu3O6ONUNT9rHkH8nQf90PhHbdD23GHPIQQqbUQwfdACkiQ4UG1apnNpNNOq I1Hy6awUAv5yDz/o3BbtF2zG+m6RISui2nREyZO7we3dUwa1hWRU0YkqFOtxRAIntHre 1DptpGrDoozfr+F++g2sBpLB6J+8AvT3qvCDFfDBkhFym0DACohXBO2Io3zg5PY1KI87 Tayseq9yf3z3WaAswNDjFfi7eiaHjgfYl7DgzE3z9lBN7pf2xllGLgF8YOrslYhoL7/m I1n5b+I1sKTVCX2n4Clx6hTcLokwL2Pofr7dgsM+35ovm6v8yI15wjmsClRFdrCexinm 2flQ== 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=XSVmUL7wnov8gj/K1YIAEJkzDh5eX57gmSWuDBUj4D0=; b=AXePZY0BlZYfoQp7KUSdrtPDSqFZD8D+/XXZxunLw5nDqhPMyrMBfQxMaPYoaNBahD gyLwDwoYmoP2MxCDg61gy/bSUjHiQsEZEKD0WhYDLaJ0avsI9gGbsNEToxAYsI/4KiNW Xxd77lcqnEycxoN5lrMGomHiIOBR3IBODD8AEfKfB6HbxbGR91gnR1yzb2SJbAgSYYcE 6FXmluyA7/KtLz8IVmMTtzW4QDywgymRbKgX+qvZiCbHz9q1hrtm0YZwGikglr7SISyA 7Up2qddpaV3GuX3LkkWtU9f/0djL9jjUonVaSEfIkYn5tkGEdccup8qIM2DEtRg6QoIW CvxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=MhKAZwvE; 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 e80si364919ybb.321.2017.10.25.02.46.48 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 25 Oct 2017 02:46:48 -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=MhKAZwvE; 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]:47353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7IGu-0000wN-Cc for patch@linaro.org; Wed, 25 Oct 2017 05:46:48 -0400 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) 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=XSVmUL7wnov8gj/K1YIAEJkzDh5eX57gmSWuDBUj4D0=; b=MhKAZwvE+lM9vIEs1QDq8CtcIBLH1hvlrYH3q2isIz3SStNwG9nrg2+4SEaKQjQccZ chsK3Zj+KN54WpbtwewHe93EXQQUC7y10+ADHMxjU3UCm536JUKO4Z5hn1CGRQhc+41F dPmrxYydvMjyDYRhByW/GCKbdwoajBaGKGs6A= 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=XSVmUL7wnov8gj/K1YIAEJkzDh5eX57gmSWuDBUj4D0=; b=NsWu/Z5OE64IayLIeI5tA8A9VLm2mlr/4e85GqtOJak7del/mRQQu+3Rqlmg3JJjnt jUZNUWZRoR/CKkC9akPLT7SaxP4hbeiwe9TxnmpQS5pvW4osNSIN+YQW7YRPDEQTJ3cT UfIP8if6sMzSRG14tRZxrVyqmv0qXjuTwdEc3Qb54K9vtNLSeCvnzRSZH7gttiiNkaVN cXqTBNuF4oKEtrB7MVmQ566WvOJ/qxXxC9vf0HS2PnPIZHQG4ABBLML2aA8QqJ5ApMfe I26n+gZQzyK89BGDEvRq9o2e1O/G+Sdpz77PGKC4h6Fp1HF9RCgFiO1MdZOHQgox5jee VcGA== X-Gm-Message-State: AMCzsaVV7e0Sj1CuMr64VIVEWvhZaNvxTpiXncJULAjrhYn/6dBcljxK qlKO0wksV41V5lLmS33rseoORDsSOo4= X-Received: by 10.223.148.71 with SMTP id 65mr1412469wrq.263.1508924178446; Wed, 25 Oct 2017 02:36:18 -0700 (PDT) Received: from cloudburst.twiddle.net ([62.168.35.107]) by smtp.gmail.com with ESMTPSA id v23sm2751025wmh.8.2017.10.25.02.36.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Oct 2017 02:36:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 25 Oct 2017 11:35:16 +0200 Message-Id: <20171025093535.10175-33-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171025093535.10175-1-richard.henderson@linaro.org> References: <20171025093535.10175-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::243 Subject: [Qemu-devel] [PULL 32/51] 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: peter.maydell@linaro.org, "Emilio G. Cota" 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 Signed-off-by: Richard Henderson --- 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 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);