From patchwork Mon Oct 16 17:25:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 115957 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3952393qgn; Mon, 16 Oct 2017 10:47:58 -0700 (PDT) X-Received: by 10.200.53.200 with SMTP id l8mr16203118qtb.49.1508176077977; Mon, 16 Oct 2017 10:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508176077; cv=none; d=google.com; s=arc-20160816; b=GlE4Tx4EPMUTsxAIcVwK8x//zmg7MaLvCQZHcoirMp2u2Hm4Kmmvhz9WOE/wNa02GS nOdUsGaGVTmsAfLzNOKJoncsJmwQgNGCRxIp9kiU3nPpDjBmkZNRboe0ZgbwJ8dV5j94 T5djx07kg3ssNj18DnOOJmF6AmY4Jap8CSxr+NtXtCLEc2usaS7WYG1svGh249VxgJqv s0BQTLV7iyVwZqWyYcolaficXs0T3+OcQvLkuXYzLhL2QcwVnI1YGmjtlgoAX6/TZ5i/ j/3ivL6067ttjtOXKdSeLt/LBQhe4Bt34iTwVRr4r8HWVn+IS3YF6HVCDPeT+m0LODLw FHmQ== 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=4Ma9RsLmJse9wKSQr2fdk1qKcq67iH7WS9DOCSRJnyU=; b=M2U9oGN1SqgueyryovHZyM1ZMEQwUcG33NFEoyxfLMZZvDEENdYUxBRHEi5DfQvlCD qNkKqYQSv841nVkEIV9ToKpoaYIlLzTTwndiCTw2YA33C/STtWQnKKTvCaXlrhcQJOk1 Xj8iHmn7cKNdRWTBQpy4qD6XRm6rCdlI7xHR8QWe2lI2q5XmFBfYfkWpjHGDCWYvDKiG 9Hr7gJngzWnhrFnDV/TD4+CrIgc4ORLLKZjx2OI+ytVuAUbxI9NtxBHC7R+tHlgoSLF/ Pn1bak+VIf6rZsiRwaTGVfjXwZn2El/hRz1E1ORt4qM5vumdBLyru3sVkeQPEH52y6P4 wHbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=JwA4pkuR; 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 38si1796261qkw.176.2017.10.16.10.47.57 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 16 Oct 2017 10:47:57 -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=JwA4pkuR; 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]:34382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e49UZ-0002w4-Tz for patch@linaro.org; Mon, 16 Oct 2017 13:47:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e49AN-0002cy-4u for qemu-devel@nongnu.org; Mon, 16 Oct 2017 13:27:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e49AJ-0003lP-Q0 for qemu-devel@nongnu.org; Mon, 16 Oct 2017 13:27:03 -0400 Received: from mail-pg0-x22b.google.com ([2607:f8b0:400e:c05::22b]:57332) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e49AJ-0003ku-K5 for qemu-devel@nongnu.org; Mon, 16 Oct 2017 13:26:59 -0400 Received: by mail-pg0-x22b.google.com with SMTP id m18so7344105pgd.13 for ; Mon, 16 Oct 2017 10:26:59 -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=4Ma9RsLmJse9wKSQr2fdk1qKcq67iH7WS9DOCSRJnyU=; b=JwA4pkuRDCQufvDyrg00h+j2sc5Jyqo9f3fUTkbjaIYfGqmk6SbDLeHpkXGqHj01Yu B7jQWMMwLlQROlfqF27K8fwZWh0zf73D8Xdt1wgAngQNWSkNfIWpBzV1/0taG5onqwWy MibVuOtTjUaURyzHa2NkT4XT3GjW2N13KAb6g= 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=4Ma9RsLmJse9wKSQr2fdk1qKcq67iH7WS9DOCSRJnyU=; b=ZC/vbNyuIyWa3x44OjeHy2l5PM/Y104sDAnI1oUYRd1rBdyhVsss4ghRLlFyES87JW PMAS8RR7TMSaN0LR/dgBgDY1JKdXW0vdPtDk0ADWWncLfG/SaPXCRTeJmHtm4gC8/TX9 IfFiYiW2+WJnhAu5X32LmxsidNtkn8oHoeP5e0yNb3Sq7JYlPSBADZ8b1sm2T6ilb+jF /exxL+B4TwAj8ZRaAhrgUUpxR6OCFDZN5D0O7lbhjDg4yfVw5Fi/rYOBldLsTxR+ua4b kjmng3uAFaAMIgeMp3rJXEnmeu88osRM8nRhQzAa37sOsxZMvAxkxnWZ6cX4yed9SJas 51Mg== X-Gm-Message-State: AMCzsaUVEdAl9zfs/tKLbb3CSIzhGdjU2NbVFNFyxFau70Kg4j0jaovv jOPDBpDbPHowOuKsPTNCmb0fmbdULx0= X-Google-Smtp-Source: AOwi7QBd+6BwNuNTyP38ZCQG9ymZLVEgme60ePOxYTod+RWQrdHtN/j1g81OPobc4TrvZHl0/WdrhQ== X-Received: by 10.98.9.27 with SMTP id e27mr9163232pfd.284.1508174818482; Mon, 16 Oct 2017 10:26:58 -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.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Oct 2017 10:26:57 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 16 Oct 2017 10:25:51 -0700 Message-Id: <20171016172609.23422-33-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:c05::22b Subject: [Qemu-devel] [PATCH v6 32/50] 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: 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/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; }