From patchwork Mon Jun 21 01:34:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 464473 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:102:0:0:0:0 with SMTP id x2csp2114045jao; Sun, 20 Jun 2021 18:40:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm3dVHgHk/8JjYZJM6TSi467znu8wbTEqk8Ksa45hk4AsTU/rhIK3bIYyT7F6api8z9NNk X-Received: by 2002:a05:6e02:1aa1:: with SMTP id l1mr459792ilv.141.1624239643417; Sun, 20 Jun 2021 18:40:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624239643; cv=none; d=google.com; s=arc-20160816; b=XZcl21eCMTeRFUBeLqqPKhD57L7EQvEQEk50hi4+jJb6yhR/meJRGimPd9Izr6rANM vTVQQiFdVqxHNkHxvuYcpMiiGEExKoPVlg9g59/AegEYDpsgP4l8kfFvAKsRNoSG/jn1 s4WaScPb8RqU6MKm38O4FRaDk1A2BqjWDx8K7qd0lfO28EtEKlnZ6pbQgI5NYS5Zs6py SYUfiXPZs78TKZM+nHUpUaqn0XbI0wb7kW5wirYMHpDk4ilxZRu/KQY9DUB5c3zDgAso QtaZxv3Ro+QTRPlgTPElJcXa4XMd2pOHvefVHcjsq+pTXvID0waD/z8JOjvDhZ1pqvJ7 ioBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=QjJQaVk4TJcc1Pr+MWyHRIaip7LxYhlzkm4i0kRZ5gY=; b=KO5FYllfiPyF6FopIw39V4rXVm1a7Qve6yKH4YFZkHK0ZnqJ690Q1sptwN77Q/LMKX mNIOoSAdkHTDWeKmOOO3i8alm4QVa5m6Xc2N3BwITgIr44XVKPxoppNsMguw7osWJ5Ar LlL8kzh1BgAgRntEhXkwdkOFxTXUq+M/v3iqC2uNvkHz9fI5h7NKqRcNjLOZFiOBStAN e+XCqbsX+T5RhDzKn6qwL28xd6gjLmHXKNdq27QNilEszmr/riisw0DusoaR75bW1ogG QTMzEYnB93u65AUWrelVPIGWg7YhpegEPAI06DB8xrEJ3ejWVf6taQfVEGF56+Rsvqia 7U+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ym/nxXLJ"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w14si7549672ilg.134.2021.06.20.18.40.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Jun 2021 18:40:43 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ym/nxXLJ"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:52710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8va-000760-Sn for patch@linaro.org; Sun, 20 Jun 2021 21:40:42 -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) 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-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) 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) 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 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: Yoshinori Sato Signed-off-by: Richard Henderson --- target/sh4/translate.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) -- 2.25.1 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) != 0; } -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) == (dest & TARGET_PAGE_MASK); -#else - return true; -#endif + return translator_use_goto_tb(&ctx->base, dest); } static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest)