From patchwork Fri Oct 20 23:20:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 116580 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2239812qgn; Fri, 20 Oct 2017 16:52:05 -0700 (PDT) X-Received: by 10.237.57.228 with SMTP id m91mr10330892qte.267.1508543525110; Fri, 20 Oct 2017 16:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508543525; cv=none; d=google.com; s=arc-20160816; b=KybbQWsxYGIreKz05wiRLYbnMUvyGjsYkvWdSeQzhGYJiRoeSOO46OEq9w9rQvfKpf FswV7lMUzTZvjgYumwxWZDloeax0IjPowvV9jbRTqhCJ3FJo4KGfpFSlw5KraDRkRelC haF4AuspSa8ulZFVdHkGag8g4lhRlubZwhBvhnV09mq48n5dlTUNQhMU3Ei8INkJcsRP /QQ8wTjvD1OKQnCDP0tANw6TpSF0R52gcibtkPJG7s9hIxha1gJrc1jr8G4YDZprJp/l ZMvSv923rXh/uGN/mIRGnqDSViFwjmuw6hiO1RZZ1Aj5oX+CTgujLojIrQnwsjghNQWK Xt2Q== 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=rNS/H3BaPIg+DoiFYRrm1NG+Dl7DPQwnp7FiHCYpevc=; b=Y+fcflVYl4lqaetm1OPs26rgL+d+A6OS8Y0GypjOeoKjLxHH9iUxs4ar8JiTY8ubwv 2cVe8MUQorm1ZEj/HCiPqgbN4W16erYBWoFyrU+574AyiznbXJoerqdV7DhENAh0Ffmk jhVFGNZtoxj/OUWDSCBOZwIXwKHMgQ5Pxg0tPSnZ2q/RMqrg0YfrF+hYLMJSo4d3VHff b9bxoJtdynbw2vNHDBp/0m3ajVr/Doqe7DtNz46bPc+4CyyJsq7dQvAl2Un6BgCvGPa9 pjxy2btgyro/B3uEyewCMiflxYMeiOTNfCjCy4L5a3F+TtK7zqnT8x47Y0boeA/XYRpm oznA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Umo4tvl/; 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 s189si1649209qkc.354.2017.10.20.16.52.04 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 20 Oct 2017 16:52:05 -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=Umo4tvl/; 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]:56110 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5h59-0008TL-21 for patch@linaro.org; Fri, 20 Oct 2017 19:52:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5gbK-0006JK-9H for qemu-devel@nongnu.org; Fri, 20 Oct 2017 19:21:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5gbJ-0007pJ-Gb for qemu-devel@nongnu.org; Fri, 20 Oct 2017 19:21:14 -0400 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:47290) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5gbJ-0007p0-Au for qemu-devel@nongnu.org; Fri, 20 Oct 2017 19:21:13 -0400 Received: by mail-pf0-x243.google.com with SMTP id z11so13060576pfk.4 for ; Fri, 20 Oct 2017 16:21:13 -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=rNS/H3BaPIg+DoiFYRrm1NG+Dl7DPQwnp7FiHCYpevc=; b=Umo4tvl/vU+ojaK2zx2H4FFkhG8GWIkg3YiqkEihkBaOgmWtWVnlUTO3pnujNfWryR 7UTTbyNqb3ukFPnJGFMPTtI95cI3Uoh76E2G9vX8Ljkkp/5u26tsHmzs0mFwghcJ/g8p GndXDcCKPCZKKc3Kw75fz6xnMgK7Nku3jBk0w= 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=rNS/H3BaPIg+DoiFYRrm1NG+Dl7DPQwnp7FiHCYpevc=; b=gk+9m4ElUWeqOmaQUH43fIiAjcYnhCJ6MFtiwgjwbfYjOLMcFLwTlxjKWUvNw/2AAm 9mJRaQ+MGIYWz7m1sc+9GVdG1wL1dopVPxCISh/CfHl76WUJpK0j18WwhQzRGhVWvgnh 4oD2IBrnHz60AlpOdNdpghD4EyzDLMZrpMt8sYQMEXwGErqnyQh0MmJvGex9RlP3X2l3 xMwN5jQ/t6szTHt/Cbi8M/VEMF2QMyCdDVxPcJ9Wyqk3NYewUUgYtMs8yoUGhXwYDY3a jtsJfbUShq6drOyTB2bBc5pMxV35nnmbS74Wk9MDxK3y5HLjQvUNunLI2xRAPQZknrwe nMMQ== X-Gm-Message-State: AMCzsaVu4aX1Tn/j+BYJBWXTMieSThPoG6Z6Ap9BBQTpuW+uEaak+V7z /ypEPcKj1wsItOUPlDeWS/GBwpJbDlQ= X-Google-Smtp-Source: ABhQp+TTKY3Ogpd3K6yDluaRoojP1LUr2I7JWF5g+kDb2dPKBpa/5/ROxhIRzvzpFRK38+QaeAW0rQ== X-Received: by 10.99.119.199 with SMTP id s190mr5810564pgc.110.1508541672175; Fri, 20 Oct 2017 16:21:12 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-165-104.tukw.qwest.net. [97.113.165.104]) by smtp.gmail.com with ESMTPSA id a17sm3532594pfk.173.2017.10.20.16.21.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Oct 2017 16:21:11 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 20 Oct 2017 16:20:03 -0700 Message-Id: <20171020232023.15010-33-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171020232023.15010-1-richard.henderson@linaro.org> References: <20171020232023.15010-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::243 Subject: [Qemu-devel] [PATCH v7 32/52] target/sh4: 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: pbonzini@redhat.com, cota@braap.org, f4bug@amsat.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 Signed-off-by: Richard Henderson --- target/sh4/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.13.6 diff --git a/target/sh4/translate.c b/target/sh4/translate.c index 33176c9926..f918bae978 100644 --- a/target/sh4/translate.c +++ b/target/sh4/translate.c @@ -521,7 +521,7 @@ static void _decode_opc(DisasContext * ctx) /* Detect the start of a gUSA region. If so, update envflags and end the TB. This will allow us to see the end of the region (stored in R0) in the next TB. */ - if (B11_8 == 15 && B7_0s < 0 && parallel_cpus) { + if (B11_8 == 15 && B7_0s < 0 && (tb_cflags(ctx->tb) & CF_PARALLEL)) { ctx->envflags = deposit32(ctx->envflags, GUSA_SHIFT, 8, B7_0s); ctx->bstate = BS_STOP; }