From patchwork Wed Oct 25 09:35:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 117079 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp654994qgn; Wed, 25 Oct 2017 03:02:59 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SxkeXDsjfp98YOce0dqSPLUxNKsC/AMNUKvBBJAPyd+m+ck1DppVVDjUnRpHrm2PaatWX0 X-Received: by 10.129.80.131 with SMTP id e125mr12708383ywb.20.1508925779345; Wed, 25 Oct 2017 03:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508925779; cv=none; d=google.com; s=arc-20160816; b=R5H/Ilv/chv/8K0fipfF0smxwp4i5grlq4UC3rKhTufB031ZOmfLSgzu45wQoUavLH O2F5nlx3sLDIBzLL4+UXsljkYnMtSBo1gCkCDsFmV0VjYu7OGbVtOPRqQ2w5e6VkeSN3 MNphNtXGtQ+lu3igaPKPC+kuAALtXGZ6Zn0GKgzJ7SstLGIS9QYf8I8ZiRe+HxNmsTYE OM7illu/ZFVrmGs358HrtZlCQV3NDUwpawP1yAsyAAVm3dbElXByabFG/9cKo+bhi0a1 Yj39t8rxinDCf/Xy5pJJrm257CXwYGnZO6bEhPtEy6k26L/0oxXSO2XSzQb6pqwbLoqb bgkQ== 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=oOngdu4qQQDnmr1OyBKE/ofC+Txoji1Sv9wdup3utHTjiM7KcjPgfm8X6GP5T9Axzk Q8MxjRvj/0pV8nOimQCc6ZEYa7H9U109EWnpFKtqqnksdEAVD/pSvC23TT4A95VLby31 lpaaUObIgTs7uWVjV4irjGDjUzS/fJXqgjkWBEaDXi3mESvsHxBF8BdywJ6oBVNslwGR vW4D/gzlGJB620qwlZR888b2ws8X1QbUFPrDgPT6yNJTof0wByOOIy3QDya2mEm/FJ+o cilic0MKidr79SH3ryuF2mJY/WHO2mNz3lJ2wFmDy1mKY/OMHtuYZKGYKlLkkRBsbCAN xFOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NxzM4IrF; 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 h1si384261ywa.137.2017.10.25.03.02.59 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 25 Oct 2017 03:02:59 -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=NxzM4IrF; 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]:47425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7IWY-0006WT-Sd for patch@linaro.org; Wed, 25 Oct 2017 06:02:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7I6l-0008W9-Ia for qemu-devel@nongnu.org; Wed, 25 Oct 2017 05:36:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7I6k-0008RH-OC for qemu-devel@nongnu.org; Wed, 25 Oct 2017 05:36:19 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:56389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7I6k-0008Qn-Hc for qemu-devel@nongnu.org; Wed, 25 Oct 2017 05:36:18 -0400 Received: by mail-wr0-x241.google.com with SMTP id r79so23325784wrb.13 for ; Wed, 25 Oct 2017 02:36:18 -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=NxzM4IrFrJXD34LeWWLvjnP5kYeUqEjoWhZX1d6gnVr3xmRfwx+CT2TtBwza/lalAG 01gBDvWteq1uc8Glgmt301bf5viBjEFywGpjcba3bg1KEO7SKqquvhsoxfcedEB3PK4U hS3SOZIWyOEdpJbLgOWqLlawkXIOBkGAog408= 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=XjaAgaAsntonkvxiTtJCISEiJ7OQ9hGs0krYQh/UQS7Tgp0JwSDWOayY6mxaA2F5/s c/6fep1Vfoq/SDRQgkA43M0szSiN8ZBlipvAzCh3uT6jsMOxLu2px111vtlXMLBdxCjo VzOUy2uGLOodnzZ9tL/rNo824NGPgUIw/v9A7r7ksUrMN5VzF03JUoKK7LXddvF6n43x Y1UxxMMf2wSqkvKUEdBMKcW/TWQpTIJ9bKU5JZrxNMKST5T01TFVvdZ1TwcuETK97ibu ocfB+30EwBn4r8/WHzAZRLpY0tMR0UYc1luegd8AyLnX0G8qB2Qy9ghcD/6+yP+Sm29F jwkw== X-Gm-Message-State: AMCzsaXPx6M/OnfTpaXeRXFncPBScETuFajE7NAF0YIDjFZwAAcTL1Ha itKShLiBpdB3yPYU+Slo99iQvv1Ch3c= X-Received: by 10.223.169.239 with SMTP id b102mr1483653wrd.171.1508924177368; Wed, 25 Oct 2017 02:36:17 -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.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Oct 2017 02:36:16 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 25 Oct 2017 11:35:15 +0200 Message-Id: <20171025093535.10175-32-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::241 Subject: [Qemu-devel] [PULL 31/51] 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: 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/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; }