From nobody Tue Feb 10 13:37:09 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=1625764736; cv=none; d=zohomail.com; s=zohoarc; b=jfHvZev15jbkXtGnRnr+zVoWCUWdmjx79qeJGZ+vz6ZC9G2Ogrv1/xsrO9hm1bQYFDm+S66EBfVZiPZ0ek1tXS7uJ6tS248e1U1YGn894W73EW5Jq3eRE0HpaE+PawWZ5XtoCFpVhEOXSzzQJh44znzZV6vBhqIXmpERkc/za0I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1625764736; 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=kUp8uiYeN4pyOFE+omZX4LipnaNlqQ0o8Xf8RQdTh+I=; b=A8gyHcKRPZHcLQxpkrxpJa9PndnFXtr75Nt6gnNTJgoE3dvA5KcMV0Z24tKNBrHVMwlBeoK+r1s9Pitn6ZlfzGnGf/nFGnZ0QA/7Z17xeFzZqwEJAbNbCehx3Ym5UbSdCP9H9H8Nc1GQRwXASozR5StFreZzGtAX2QJJeYlzbYM= 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 162576473640471.66966334765777; Thu, 8 Jul 2021 10:18:56 -0700 (PDT) Received: from localhost ([::1]:39982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1Xfq-0002ai-Af for importer@patchew.org; Thu, 08 Jul 2021 13:18:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1X5R-00025b-LX for qemu-devel@nongnu.org; Thu, 08 Jul 2021 12:41:18 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:44678) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1X5F-0008F5-Ro for qemu-devel@nongnu.org; Thu, 08 Jul 2021 12:41:17 -0400 Received: by mail-pl1-x62d.google.com with SMTP id a6so3284385plh.11 for ; Thu, 08 Jul 2021 09:41:05 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id j129sm3465678pfb.132.2021.07.08.09.41.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jul 2021 09:41: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=kUp8uiYeN4pyOFE+omZX4LipnaNlqQ0o8Xf8RQdTh+I=; b=RiscMaj3ACRrujFTRqA0sNySIDuJSvPO9e376d06HIcf2lwBHGy7UNtZrbY2iWGb3d AeOo+Fr48J7se4mYZ6LTJScqqruCoaHCaFU/1v4WBBzcWyrzvUF6aGEHr4i1bK1DPyj8 LdxelG1z/FdFdx+FGbukQGFVJU4i0VJsMk5U++rQtyqIqW1mf6BhtAvPj97W19bDwHaW 4Lnh3ZbsAMINoJvmabart283Qk50grxVLG1/rrYXQxvnREMs8IwIYk0zlOmlme3YCFVl 5pXzm0NOuR+VVyNUQyNiolz7zvpd75J98MZEm7ONo7i7Z457LEG/tg4rONg06j/sxOPc SxwA== 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=kUp8uiYeN4pyOFE+omZX4LipnaNlqQ0o8Xf8RQdTh+I=; b=mLtXzpRZBIEJmaj/zhV9s/0BfMdElh16lfQghldoWqTVqfgx7VT0ahqFkGa6HRT1Ii Fsm+U+2YAO0ypm+ZB0774HYWE42no/G/VpQ1I9bCfNNvrnO4bOD4F0tRWoQc6aAWErn4 ovSCE0FmpamdLbRyuagosvy/555qdWA4N3EcmO70EKWSsHrmkakJVe0+SXWjPVMSP7KX HOPcoEQirmagd6tDdm+jW6L+gxzdKJ36iuuJMBl+dKGDkZZRN8n33NBEfiba5OD3hNWL q17vZqEt43mVXP/T+cWq55cRGyVmzrIJIP3LxbhG/282n9qmRuFF8cbT0ALK3r/Ih+ZS ZMVw== X-Gm-Message-State: AOAM533tXDyZ7vXCgSMiIMnIU/nUPvQJAVjPiV4bCd6loTyNuPU17mzO pW9v15Wp/iI74ER7fGT8PHnO+Govxb4JRw== X-Google-Smtp-Source: ABdhPJyxckKO2NzlgiGtNjNepY+dgcJ7vSQun4Viq0NWL6fQVh9z5+ohO+pHXut8GqAMFF/wP9dNsg== X-Received: by 2002:a17:90b:251:: with SMTP id fz17mr5868419pjb.109.1625762464568; Thu, 08 Jul 2021 09:41:04 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 24/28] target/sh4: Use translator_use_goto_tb Date: Thu, 8 Jul 2021 09:40:46 -0700 Message-Id: <20210708164050.711967-25-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+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.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: 1625764738535100001 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 4dcfff81f6..db09a0bce3 100644 --- a/target/sh4/translate.c +++ b/target/sh4/translate.c @@ -225,17 +225,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