From nobody Tue Apr 15 23:09:45 2025 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=1625931455; cv=none; d=zohomail.com; s=zohoarc; b=AVLR5T9gTunKbQR8hKB1Yxi5+IjRCNiSnP9t6/WQUr0baEnXKHp7uTCxZy93SV94hLmvRZaWbwZS4ejaGNlw0/xedVGxyXz1lMTSUukKWL0QQmwTck1O6J7TuFpzFURBA8UW0bJyc4CYEI8cXkDp/oSSzRB2VXHz8yIDFjSZzGM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1625931455; 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=KOIIIgFSsplaRIYV7/xcUpt+eZ6DdDmbIOsCJze1E68=; b=dPOi7pfO9+1wBawCuYO8usLXiuI6fk69UygBsU7LDOzIKMmuEoA04XsT3F2JIzwWBfoXEQNLXfjomPmCIZSxwOXRCveC11GlN08N+yTfcOTkdvoNpxvPS6JYHGc1FeFbkjAc0PAZaJvDPnpyUutLBDD/FuGIv1VnPHU2Xo+qxzc= 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 1625931455791138.25304835934492; Sat, 10 Jul 2021 08:37:35 -0700 (PDT) Received: from localhost ([::1]:33348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2F2s-0004yd-Kx for importer@patchew.org; Sat, 10 Jul 2021 11:37:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2Exb-0005w1-Le for qemu-devel@nongnu.org; Sat, 10 Jul 2021 11:32:07 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:33296) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2ExZ-0002QK-Oz for qemu-devel@nongnu.org; Sat, 10 Jul 2021 11:32:07 -0400 Received: by mail-pg1-x533.google.com with SMTP id 37so13197632pgq.0 for ; Sat, 10 Jul 2021 08:32:05 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id u23sm11975374pgk.38.2021.07.10.08.32.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jul 2021 08:32:04 -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=KOIIIgFSsplaRIYV7/xcUpt+eZ6DdDmbIOsCJze1E68=; b=ZT596TWrwqnrpxOUlpSLqlN0xbeS+ZMp87D0ZrsphHVoHt49pHMBJ3rFqRa7EQR0VR I6FZZxMWejSyFLwUbXSK05Lam3pehYi3JAPy7sg5cB755IO4i84rAxsnEE3pauXanCGY 7r+kkxVxQjQ0INsFCFAR0zMW/ch+c0e+89JmtLs0gtAxT5Xii1pR5Y4bLbmkXAgQfOyr 6vhbD4i767YscOzEt32uubCvT3M5hFth4CknyMr4FvYSZJLgOaR6S6M20iibqB59gR7o 2Qc6PJa/VHgIx2PtGsjQP9jGUHjiLnL13stxDcGLilUTXKpi9Pud/d8vddrO9BeXbbec ymhQ== 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=KOIIIgFSsplaRIYV7/xcUpt+eZ6DdDmbIOsCJze1E68=; b=NFP5Cmh9sU1Goh1nnukWwihjoFpImaEg2SwgIqRio89XedhbZvnR4sarLJIVJD2aoG 4j72ErxZL0PTmwMs0EWGqe5PcWZzBE7sMnuEPHgYpF3MKfBVpq0UywPM9V8LA5yc3DV1 U4uf00FANpqTGr6ftN6IZdUG9sYH4RhcPNZ9zECcdddbm2Xjo9UQXkyNlzMgZsV6SYcj Xs6/8kRP2PecCa/vlZNfYzsVU3eMf3OmxCDEPwzfXIFOstOR0a6bwrMO+tcZM3V+Grbo ekhfJws0aifn65u9oyBabnZe9YDqoZvbSHrpVe2wYJqwNuIiiUXGJ75Q5fDms3BJgc9I FQ7A== X-Gm-Message-State: AOAM532xVOREzaZ2W8OuGBZFp1SNn4JO53x/uK181NZMbHzB8jcYK2Yw yna2sTjEJjt4/eapLWQt+1ZHDdFl019v5Q== X-Google-Smtp-Source: ABdhPJyTMO/7XEHPs3DXZgBVwWMDmtTdBqFqb24c85NxFocTvbM/8y0R5nWTKh9Uk2g1GPIXxzLhew== X-Received: by 2002:a65:6a0b:: with SMTP id m11mr4043505pgu.380.1625931124570; Sat, 10 Jul 2021 08:32:04 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 29/41] target/sh4: Use translator_use_goto_tb Date: Sat, 10 Jul 2021 08:31:31 -0700 Message-Id: <20210710153143.1320521-30-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210710153143.1320521-1-richard.henderson@linaro.org> References: <20210710153143.1320521-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::533; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x533.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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1625931457208100001 Content-Type: text/plain; charset="utf-8" Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/sh4/translate.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/target/sh4/translate.c b/target/sh4/translate.c index 8a25a4362e..40898e2393 100644 --- a/target/sh4/translate.c +++ b/target/sh4/translate.c @@ -224,17 +224,12 @@ static inline bool use_exit_tb(DisasContext *ctx) return (ctx->tbflags & GUSA_EXCLUSIVE) !=3D 0; } =20 -static inline bool use_goto_tb(DisasContext *ctx, target_ulong dest) +static bool use_goto_tb(DisasContext *ctx, target_ulong dest) { - /* Use a direct jump if in same page and singlestep not enabled */ - if (unlikely(ctx->base.singlestep_enabled || use_exit_tb(ctx))) { + if (use_exit_tb(ctx)) { return false; } -#ifndef CONFIG_USER_ONLY - return (ctx->base.tb->pc & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PAG= E_MASK); -#else - return true; -#endif + return translator_use_goto_tb(&ctx->base, dest); } =20 static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) --=20 2.25.1