From nobody Tue Feb 10 23:32:46 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=1624239716; cv=none; d=zohomail.com; s=zohoarc; b=a/3P4NAe1dtvLcpMM87U3DN+rgjNBnRAJOTZBo4R9HYSCcuhGXspYh9e1lodigIl0oh5a2nENeX86SAdZthDluh+tYYw5tVZEYD751ChhtmMrsUNeo9YAv0aN8g7cqqsZ+gW0mtnTla4abu02GLkrpu1AiiaiomWele/V8X8QzU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624239716; 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=QjJQaVk4TJcc1Pr+MWyHRIaip7LxYhlzkm4i0kRZ5gY=; b=Ds9Fa7PviGpUIlSLUlz0smJQgEWBHUNgJ20F4SF1Ml+8qzdluNmO/v3Z9/OTOB8pMo9S/T8wtTAMKIrIk6fPxWljZPs8uvZIOW2YHSzLqBMUOdCEr4rzTdTduQzLkASfnb4Tmh4KNjVdrVJTw6yj4cieL7EjDDXx6Do44oBn1PM= 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 1624239716978933.3453148246516; Sun, 20 Jun 2021 18:41:56 -0700 (PDT) Received: from localhost ([::1]:56686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8wl-0001Su-01 for importer@patchew.org; Sun, 20 Jun 2021 21:41:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8qF-00048v-4d for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:11 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:45827) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8q1-0005Ey-HL for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:10 -0400 Received: by mail-pg1-x536.google.com with SMTP id y14so1403100pgs.12 for ; Sun, 20 Jun 2021 18:34:54 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:53 -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=QjJQaVk4TJcc1Pr+MWyHRIaip7LxYhlzkm4i0kRZ5gY=; b=ym/nxXLJLjB5Ns54EzuUTIWA71Iue6fpabWf1s0p8GuguZtVehMawvM3Tvv9jWXRVL IzuiODAIzF74jFjCJucLMjr9w7c1CQJZgpD20aOcGig1+Rzgels36sUcjwn4qlkZ3h2m vxI3XJRXHsvJln8SU4FMkqHvwxEOt3/Gz7TprBxO3CF9+7DEb9bK5Z7U1Jf/lrDlarvO ELaym3xnPN+tsJpJnDlQ63xF5mn6FnqEdoJJVVvbNsfdIKtnsbfHqk4354+1YhtzVkGk VLkIckkZ2JVulsSFzE1lNc+/vxKcYT0yK7+cYP2i4H7CJcWWBRJ3pHJJ3zuv1CkO51SA eNlw== 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=QjJQaVk4TJcc1Pr+MWyHRIaip7LxYhlzkm4i0kRZ5gY=; b=uT63+qykA6Mk9S6pxKgvu2OfB0lb5Abe0N+3RRRUkxOIN2zs54CwJm16n3WZz+dvlk lGfbnlmrPrsLKBXamkRlCGyzD/MgHQrcRMGolCInf11QzxLLb7ur0YcuGdasLQL1E4nI o/QUEZpjUJFEQsW9gzDSDfYBNFRKUBmZKNZbjVRjFzfLJWKC16pxn18XeDIpUGhAaV6n tjJkt4Pts7mRpLcaspTn1b/mbsbyZM6M8D/xF9udrudxcsmSRU1Fb1ssSwGZtZgYflr3 XdY+TRZDJ7wbGDfpNHWLiEEunm02PDC0CRq4dDbKoZgZvoHQDMnx7cETR+BRIFm5SAf/ VG2Q== X-Gm-Message-State: AOAM531EtpFlDfp//8fNDy6oCCzz+U2LU5UDJB1PQ2KMUf5xQyjCE0P+ LJSpk1YgiLKAYqrwbmn5skUiZBxYjmY8jQ== X-Google-Smtp-Source: ABdhPJwXv3UFYXGHxgAhbqDFbTO1ToIBsgr+akWsgvJVdjkcsaZomUyibLke+4sf6SjwRKkMsvy/Qg== X-Received: by 2002:aa7:9507:0:b029:2df:b6dc:c68c with SMTP id b7-20020aa795070000b02902dfb6dcc68cmr17175056pfp.31.1624239293793; Sun, 20 Jun 2021 18:34:53 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 22/26] target/sh4: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:35 -0700 Message-Id: <20210621013439.1791385-23-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-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::536; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x536.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: Yoshinori Sato 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" Cc: Yoshinori Sato 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 9312790623..9ac9bc722e 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