From patchwork Wed Jun 30 18:32:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 468738 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp631321jao; Wed, 30 Jun 2021 12:06:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdwOD52kIjAx6Nu+XHpfG6Otxq4q0Ea9y7mBXo6cu7sj1GWDZ4u9AmRUrBSZtAVq291lFM X-Received: by 2002:a17:907:1ca4:: with SMTP id nb36mr6643527ejc.33.1625079965956; Wed, 30 Jun 2021 12:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625079965; cv=none; d=google.com; s=arc-20160816; b=mP2Bn5rRXkmlBnR+SCE68rWrrV7m9n2olqbFkn6RB01idlm1DHoPcb77e90VLKkX4B XZ0O8aDt58xLfgNioCadBcRa8EPMI0NonNeJkTRIg95G/ZTo+9DO919ESmtNT4ygRnxc 5dA0MOZZIO07eWpcvtSrsM0azdKhstGkGfMIwtmUyWbKsfwKFhg1S1iSHZtuAq8CpuNk WEYzh/KTkIK6yBaoeKvdOmBWbDA2Ies3iwJYpHFsask4BYlMsJQDRQ1IcAWVVgeoDaBw ufIYQRMqGO43pQwSC+HGa9Qhj7wUtPk6C4AJwKGiuUMUmmmVzQWZExK2slcsrh8SURUx CMKQ== 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=c5zdFypNJUiuz9mUBU1bW+MPnocbJgkyrT9X/Rkk3hE=; b=f3NkZKC/lCZ7D+hLb0MWqaCU+0q8T5vdHvYBkYmLmnJfp9eTmxJqJ5pVfDIINOi/Vd TOw9Dze7w9KQwW8FumRCx2MM0pYfdw9MgBr1iPDzEWncYU6dM7uwMTxwudYSgTikTIqO CuH5w+4C06QG3/JxMvN//RL/YFu//yKV6gOcwfr+xb05R8PY9SFUISsrLQm0R36UMrVo r7IP04VJoHhdS5nVjFamKIPoXbaH57ITuMZVrL0ka4i7l/qpS7e26wZO38UXK/Pb/2Q+ EAThnS6SHpIDaYaVw1H0F/FHSvGvr2zYCdADkWJpd9tPwQmu7A7tWlEymCIpMZb8CY++ /UpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XYko2A8D; 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 b10si23080838ejj.523.2021.06.30.12.06.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jun 2021 12:06:05 -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=XYko2A8D; 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]:34330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyfXA-0002IE-P0 for patch@linaro.org; Wed, 30 Jun 2021 15:06:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyf0w-0005io-HS for qemu-devel@nongnu.org; Wed, 30 Jun 2021 14:32:46 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:38706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyf0u-00028q-27 for qemu-devel@nongnu.org; Wed, 30 Jun 2021 14:32:46 -0400 Received: by mail-pl1-x62e.google.com with SMTP id b1so1989115pls.5 for ; Wed, 30 Jun 2021 11:32:43 -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=c5zdFypNJUiuz9mUBU1bW+MPnocbJgkyrT9X/Rkk3hE=; b=XYko2A8DkdqNp2CiO+ckRPZLiXhFRfUQqPKHEgFO63Xlw06FTIJ3xKANnlwfsePULX V0iEViUIdfvBNa1uigszfYDVgaAgOqad+6uvSyv+XSODewWFKnWoPoBFCHB1APv1lsmX rjxpS5A+WAAv8LL7M537e1vEX7F57x2oUQVjCj4cyVddUPtwU5uuCyBcEO9aH90H1JwX iM+K69TIgrMuZO42Gs072r9JnudPEVvA1+h3AgEF3Qf2MRudjXXuPe66Dhi5g5DbvvEU B9+C9SYxxOiR+/Vnkz2NdQJvIGemf+Ltu1yNvubvBEAN+9PchMuRm+2m+WSjSKwdpkAJ kweg== 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=c5zdFypNJUiuz9mUBU1bW+MPnocbJgkyrT9X/Rkk3hE=; b=HCuTpjX/D+Th10S00uqfl7hhahXWjsPfBAtOWgXlLzntOWvPWskwaypRdlrXkE1scf IeRAMWbzA/xxj2m3ghmDENNX3ws88S7DHRRgCb9bxD6OQfQVX18m97aRp/PQ2/l33dPD G77yQ9OUjK8dQQr9pXpq+2w7W6HQjDxvbqodv+NbHx5Bl0pfttSV7Pdl71ECuZOSY8JO Qry2DI4CnWDiljWLlaoG+LdQxnN9RFq8z9ZY+TN5bfAaYIVHy2lHYm/6uXJUOy9s4EyF dgkSIeditNpwraeTErOxdTGMlSbHzT6Shak52LOSTjosyoFz7zzR4Oqz9dtE4qFLBxEV +HtA== X-Gm-Message-State: AOAM533dIpH80iAfQNbPoO2J+Xx4ng21ZtE9y3lRCnRiokLKy6h2Yu+x BIZHSv/Mk8awG5oQGiQ/DdHTP26/W0eCtQ== X-Received: by 2002:a17:90a:348e:: with SMTP id p14mr40143906pjb.151.1625077962723; Wed, 30 Jun 2021 11:32:42 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id m18sm23909517pff.88.2021.06.30.11.32.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 11:32:42 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 25/28] target/sparc: Use translator_use_goto_tb Date: Wed, 30 Jun 2021 11:32:23 -0700 Message-Id: <20210630183226.3290849-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210630183226.3290849-1-richard.henderson@linaro.org> References: <20210630183226.3290849-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.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: Mark Cave-Ayland Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Mark Cave-Ayland Signed-off-by: Richard Henderson --- target/sparc/translate.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) -- 2.25.1 diff --git a/target/sparc/translate.c b/target/sparc/translate.c index 4bfa3179f8..fb0c242606 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -339,23 +339,14 @@ static inline TCGv gen_dest_gpr(DisasContext *dc, int reg) } } -static inline bool use_goto_tb(DisasContext *s, target_ulong pc, - target_ulong npc) +static bool use_goto_tb(DisasContext *s, target_ulong pc, target_ulong npc) { - if (unlikely(s->base.singlestep_enabled || singlestep)) { - return false; - } - -#ifndef CONFIG_USER_ONLY - return (pc & TARGET_PAGE_MASK) == (s->base.tb->pc & TARGET_PAGE_MASK) && - (npc & TARGET_PAGE_MASK) == (s->base.tb->pc & TARGET_PAGE_MASK); -#else - return true; -#endif + return translator_use_goto_tb(&s->base, pc) && + translator_use_goto_tb(&s->base, npc); } -static inline void gen_goto_tb(DisasContext *s, int tb_num, - target_ulong pc, target_ulong npc) +static void gen_goto_tb(DisasContext *s, int tb_num, + target_ulong pc, target_ulong npc) { if (use_goto_tb(s, pc, npc)) { /* jump to same page: we can use a direct jump */