From nobody Mon Feb 9 12:38:37 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1624377375; cv=none; d=zohomail.com; s=zohoarc; b=mWDucwGHEYlIiDaLOZWmHGjNacvHO76wr3M8/yOssWlryIRAnmhk7FrBLlcnKCtVE0h6TfshAsWR0K5V6L9FxVvqHWh5J0YlBk+/TXAmFYFe6jrdnchi8ExUt7fs/GqMVMrL63dl39Vgz8mMEbVTbyKhRFgVR6cm40g5zKinJ4A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624377375; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=7dML7HVO3SIUvu7+ZiyMAW2r1aYzDyVht2iysbBCWL0=; b=hn85UIlAAxql61KsAuXCfecBY2jjtWJPzYNlXBm2YnDnVPGmCl3M6uOAQ7cTc+S61KoPXhxyy3crOOyjPFxZgw6At3i9GQOtwPaENU8EhDZ7eRxFaSP/sHtrCPb6wQTKGLksEiyKJYKu4ftp7t1IT/enfy9+2Bn92QdBj4+fw70= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1624377375803118.98413072088204; Tue, 22 Jun 2021 08:56:15 -0700 (PDT) Received: from localhost ([::1]:37468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvil4-0004uP-Sp for importer@patchew.org; Tue, 22 Jun 2021 11:56:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvidd-0005AL-La for qemu-devel@nongnu.org; Tue, 22 Jun 2021 11:48:33 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:36712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvidW-0005Iv-SI for qemu-devel@nongnu.org; Tue, 22 Jun 2021 11:48:33 -0400 Received: by mail-pf1-x42c.google.com with SMTP id 21so1758240pfp.3 for ; Tue, 22 Jun 2021 08:48:26 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id x13sm2898769pjh.30.2021.06.22.08.48.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 08:48:24 -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 :mime-version:content-transfer-encoding; bh=7dML7HVO3SIUvu7+ZiyMAW2r1aYzDyVht2iysbBCWL0=; b=jJdRi7vB+Rlaqngnxx63ms2B9DbygBFa0KcONauqK1OiSwsfGoD2sIPyWd+z6qxv4d s7jTn3vyOtkr50ko+31LTDv6GTC9lOZ9Peqor79HcETTwNtOFANF00iQgMqgsx+MU1g0 PvIrrSBij6JO6Y5VpEcIIjKJGgcl5i6vNWxPB2RHFGn2fYUA8T5hAyILvZ1vMPCQDUcp k+phY4PKxW9CyINwMz6/HiCpPCS6USB2ej2l/eNrVxhNV7vWZ+Er1PVFPHfonmh0biVV 7BQlqPjyZPKXV08bwwqJmvqJT8YJAo8TmHwDw0tbR0NkVf8aVKTJYM6KM0FsBCvudv4r lLKw== 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:mime-version:content-transfer-encoding; bh=7dML7HVO3SIUvu7+ZiyMAW2r1aYzDyVht2iysbBCWL0=; b=Pi4sYkO4xz3irnPPH7sVgYRvPjpVveiVbS/bvh/zF4tvSecZeKyOOtmtQInsfXJniS C2ASf7Y3fdej1rxQF4OGUKZJSl9hGbyaL7tK5tu6JTdfYYMBt3ymqdA3HewkHhG32fYm 7QrGbCG7dUNxzxY6P/W1nK5/tg80ir6JMBLhfjlZlN+gs5SWmzntwvp3m+HKu71NtFfC 39M5WCI1SzQSYDjPUW4mgY+jxwQTvGTcOBOcRlffgeN2BhICCNnjpujeo+i+SBA8+zAT URYauMJD3W56n7UYEL6iZOmutJIGTJs33PoaVHe70FdT7zKwCZOisT1yjlQVP7+1oBDG 997Q== X-Gm-Message-State: AOAM530AsyGTYcDi8S+656R3A3dtuWjlWSBU64L6mxTlRvPYTCMZ61px 2p3GJ9k03RpArOX8yNmPce0PD8oSp1ELPw== X-Google-Smtp-Source: ABdhPJx/4GDiIpHcjo0GMCtSecYK7p7ISVlQtUIIdEKsK3ojjh+uvm83md12O/AwH1DPKmai00UxBA== X-Received: by 2002:a63:5442:: with SMTP id e2mr4383044pgm.365.1624376905174; Tue, 22 Jun 2021 08:48:25 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 05/15] target/cris: Fix use_goto_tb Date: Tue, 22 Jun 2021 08:48:10 -0700 Message-Id: <20210622154820.1978982-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210622154820.1978982-1-richard.henderson@linaro.org> References: <20210622154820.1978982-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@gmail.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Do not skip the page check for user-only -- mmap/mprotect can still change page mappings. Only check dc->base.pc_first, not dc->ppc -- the start page is the only one that's relevant. Signed-off-by: Richard Henderson --- target/cris/translate.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/target/cris/translate.c b/target/cris/translate.c index 24dbae6d58..9e1f2f9239 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -524,14 +524,9 @@ static void t_gen_cc_jmp(TCGv pc_true, TCGv pc_false) gen_set_label(l1); } =20 -static inline bool use_goto_tb(DisasContext *dc, target_ulong dest) +static bool use_goto_tb(DisasContext *dc, target_ulong dest) { -#ifndef CONFIG_USER_ONLY - return (dc->base.pc_first & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PA= GE_MASK) || - (dc->ppc & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PAGE_MASK); -#else - return true; -#endif + return ((dest ^ dc->base.pc_first) & TARGET_PAGE_MASK) =3D=3D 0; } =20 static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest) --=20 2.25.1