From nobody Wed Feb 11 05:57:30 2026 Delivered-To: importer2@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+importer2=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1625764520; cv=none; d=zohomail.com; s=zohoarc; b=S6IbO7Khp7fzHqSnkNrD3LP2jWFZQmZORWUGYGtINlM2FhIVI6pZ6YZS6WnaMjHojG0znLl4nYT9lcsSnFVCmSI/Q+pbtfds9I14JGfQtQG5jHORmtN9+rSEsJ9gpWF+WkM9CsgNGA4Q7ggxCWDc/IpLnWDdDvuT6ahYTlJkQmE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1625764520; 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=Mu/klPefx3rfkuaf7T8LxDUEzbZZpOz/hPlkdZ13L10=; b=atPgKTIYfLsWJxTbyE5oByZMFLgFPWAgzgoFhoYtQd+Evv3MhL4MdCI5PBmyn2c4dtLTNJVLNUG3lmeYQTY9nxWXGSH0kyYBPyLhoYadlWIdQytp3R7JP66I61/ksdyBIFbPX6a/MvwwviEPBwZz9sEUoURjV6O5IP616TdmmwI= 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+importer2=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 1625764520187301.8762702555663; Thu, 8 Jul 2021 10:15:20 -0700 (PDT) Received: from localhost ([::1]:57148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1XcM-0003bn-SG for importer2@patchew.org; Thu, 08 Jul 2021 13:15:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1X5D-0001bh-KO for qemu-devel@nongnu.org; Thu, 08 Jul 2021 12:41:03 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:45785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1X54-0008AL-0t for qemu-devel@nongnu.org; Thu, 08 Jul 2021 12:41:03 -0400 Received: by mail-pg1-x52b.google.com with SMTP id y17so6581204pgf.12 for ; Thu, 08 Jul 2021 09:40:53 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id j129sm3465678pfb.132.2021.07.08.09.40.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jul 2021 09:40:52 -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=Mu/klPefx3rfkuaf7T8LxDUEzbZZpOz/hPlkdZ13L10=; b=valb4wA+xqJ1cZ6LgtuBw3tPYrmmeKEzPlNvgvcsdtWYlwvn2FXeqzq1aoaiWsNQYU lLN02J1KNgFYYVJ0BwUMC/hNCES098J+Rhs+qInq4rVc03o2XLJB7d4aEiEM1L05SJnd 5Yunv5JPhDeXqsfxmqADJ+nM51nTozI698BHQPa0WhTEq6mNpfVYhyM7s69HYBkKZ/5S 5CJsGWHjpnIoXvgA9AJcN9ccKqZFl8uLaD0aw/Z9DceHGaK44l6nGBmRA0MtiM4ylA6z q9mCMP+IH9NvLFAYgnsr/fAXclo1/krcBpGkWDUhzAra/ZwxxswS6IzM0M14zhZxmISK 6KkA== 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=Mu/klPefx3rfkuaf7T8LxDUEzbZZpOz/hPlkdZ13L10=; b=nhVOqRZrBM71NojjB5o4umbhrBa1CrQEm4wGfmNK2hh81lCIH/BeSe9rZQXqDCK7Gb xQgMKIw7GxJIujrfgO2zOS+EnbOwGC3OCxn3z7i1JS96FnWWEp7hM+EXae8tLbu1QRVv a9RXPYqSLJFnOJxw5bK/VE5CIW4QTGuunxl1bkdwrJwHfd1p1sQC83iKjlnPQn+Z2WZO nh197ufKOZqYwUnhWDakXpXdxPhJpWxUlgGCDvNdj56rVW7wTQ7oAF4nz3ctlla3Crat zFPvo1oMYi0Pe+QUies5igIFJmbRhD3POZ4tBvzKmEcx3nNQfe/ZGqcT3YlDYblWQGQt OGwQ== X-Gm-Message-State: AOAM530f572wQooN7TDI2E1QlXdHTbVaT/QWT5qhHV7p+X9ZzLFdv9nR Xc2LA7Ht289A3rzApIBMarCmObVEmODW3w== X-Google-Smtp-Source: ABdhPJwBYUbX/jxPoGdvfMjWEya7WypDUDl8uIxjyM84DUXp6NHV0ts2KmqL3ds75UkkY0BZtnwNBg== X-Received: by 2002:a63:214d:: with SMTP id s13mr33492499pgm.260.1625762452730; Thu, 08 Jul 2021 09:40:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 03/28] target/alpha: Remove in_superpage Date: Thu, 8 Jul 2021 09:40:25 -0700 Message-Id: <20210708164050.711967-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210708164050.711967-1-richard.henderson@linaro.org> References: <20210708164050.711967-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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.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: Peter Maydell Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1625764521290100001 Content-Type: text/plain; charset="utf-8" The number of links across (normal) pages using this is low, and it will shortly violate the contract for breakpoints. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/alpha/translate.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index aaedf78116..8fa00a79d1 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -439,24 +439,9 @@ static DisasJumpType gen_store_conditional(DisasContex= t *ctx, int ra, int rb, return DISAS_NEXT; } =20 -static bool in_superpage(DisasContext *ctx, int64_t addr) -{ -#ifndef CONFIG_USER_ONLY - return ((ctx->tbflags & ENV_FLAG_PS_USER) =3D=3D 0 - && addr >> TARGET_VIRT_ADDR_SPACE_BITS =3D=3D -1 - && ((addr >> 41) & 3) =3D=3D 2); -#else - return false; -#endif -} - static bool use_goto_tb(DisasContext *ctx, uint64_t dest) { #ifndef CONFIG_USER_ONLY - /* If the destination is in the superpage, the page perms can't change= . */ - if (in_superpage(ctx, dest)) { - return true; - } /* Check for the dest on the same page as the start of the TB. */ return ((ctx->base.tb->pc ^ dest) & TARGET_PAGE_MASK) =3D=3D 0; #else @@ -2991,7 +2976,7 @@ static void alpha_tr_init_disas_context(DisasContextB= ase *dcbase, CPUState *cpu) { DisasContext *ctx =3D container_of(dcbase, DisasContext, base); CPUAlphaState *env =3D cpu->env_ptr; - int64_t bound, mask; + int64_t bound; =20 ctx->tbflags =3D ctx->base.tb->flags; ctx->mem_idx =3D cpu_mmu_index(env, false); @@ -3020,12 +3005,7 @@ static void alpha_tr_init_disas_context(DisasContext= Base *dcbase, CPUState *cpu) ctx->lit =3D NULL; =20 /* Bound the number of insns to execute to those left on the page. */ - if (in_superpage(ctx, ctx->base.pc_first)) { - mask =3D -1ULL << 41; - } else { - mask =3D TARGET_PAGE_MASK; - } - bound =3D -(ctx->base.pc_first | mask) / 4; + bound =3D -(ctx->base.pc_first | TARGET_PAGE_MASK) / 4; ctx->base.max_insns =3D MIN(ctx->base.max_insns, bound); } =20 --=20 2.25.1