From patchwork Mon Jun 21 01:34:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 464486 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:102:0:0:0:0 with SMTP id x2csp2118662jao; Sun, 20 Jun 2021 18:49:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/QOw9AqFHN+Hllg8ixUyAjlilOKO933vU9N2wWSis8Lk7Ydy69C0ojyFyPDHnTZ4dWwo9 X-Received: by 2002:a05:6e02:1c85:: with SMTP id w5mr3002171ill.285.1624240179570; Sun, 20 Jun 2021 18:49:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624240179; cv=none; d=google.com; s=arc-20160816; b=SAbOb/Nf81I5VU26Up9X3c9NsafQbPKDxCMBEsxEaed5icYM31H8KD62LpNo04mDFF dQRgldAzRRQKbfFlJqvLvpe2XyXYOZeXYlK8+AMuxaGYSG3ElQS/tOglWcXIaPO4L/a7 I4YnyRpQEu7DgNVB2haGDlGoUhoS7LPJ02kT1feqQ+bsgQlMp30/UfG0HlvVcb+a/Khh GugmUSyYDmaQ2aQFrVLxzs8uRs8DL0xE5pdKZw3Ph7U480Fq+UNQoyUz4AJiduWJgP5e AiJqbrNWep+eLirwhvAkMG8f/6cCDbWL4tb2dfrmKcDJmVVSpUlcCE504F7Q4DQGXVHd J8MQ== 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=Q2Ouh73hF0AN8kJMLg+kfMZ9F8C6D2HrVX+Y0FukeRM=; b=lm5k4alu6VfZxr3AIlGsqbxaf4FS72ZnOmldOhTYBmcfcUCOf1NajDrCplbh1+k3J7 yCu9VS9KY3HWYtw7Ez+SjGxKyNE660q5w6IHYFA819hYHeVOp8aNHJiYj34k3Liouq2q okVdPAzjSYuGddMeu8fPNveCVUECEkpVIAzIG6Mts46sV4fH3FOXBLlXdwjUbcEpzJ3I ElGRlitKLeLtQm/b/O/4vq8Nftjs03k5t/WL3WuqtXsLvnriRcvYisHQnTAShDMR6I+U vvVCnJ94h5mqksg19Cq+7b9fV8GSu8a3oo6teWJ8aP5/ZhujY5oldd3JWH6sH/DeVoLL SplA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EcaxYBWR; 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 s13si18147392jat.111.2021.06.20.18.49.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Jun 2021 18:49:39 -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=EcaxYBWR; 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]:51650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv94F-0000V3-1n for patch@linaro.org; Sun, 20 Jun 2021 21:49:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8qF-00049n-Fu for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:11 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:38734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8q1-0005F6-Hr for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:11 -0400 Received: by mail-pl1-x629.google.com with SMTP id 69so7651782plc.5 for ; Sun, 20 Jun 2021 18:34:55 -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=Q2Ouh73hF0AN8kJMLg+kfMZ9F8C6D2HrVX+Y0FukeRM=; b=EcaxYBWRyh18mYoxCHXWUA7BGoSb1bRc0HD4P2Yr7aExkjdnVJVbTDi1avkWY1XggQ XgLdh7V06xcjs3Mu0Wa+XWl+Q6OtjN4AbxuDy2Uqa0XURIMc8XjfDsGvsi+EE/bjc0rM Ba34foj5s5EhNz3S7MBSZ9SPAx1wb1NYO50kJn4VcTpeHcKPxrTjs0Jbr6/IbENdhYLx 6sDsJGip5tQ1kwXllS+b0pQDOrHoGGHMozfBlVbTyDlEYZuhNO1girer33hxtIko/iu7 Nsxr3/xKtnvuptx51kj3BI3bvCAvde92c3MsBPxqXuqi6tQbl7kVg+tu1B+vJIT1P4en kajA== 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=Q2Ouh73hF0AN8kJMLg+kfMZ9F8C6D2HrVX+Y0FukeRM=; b=An3BapQUcrvurrPkfrwh87WvCFTovnAsISEZieYGWhWSwTY3PbBQRFGiZFThuKOahV WlFTMetlbudnZYPi8EoJ+ezQtzTcnFNnjwbDoL84zBXZETVh9zBHB9UAqJUFiSyP4r59 n4d+n1eG8P+4+1E6EjkhXzCqItsIwmvkrj75Zn71Y6+SlA8GRjCJnAzhlczwPwwDchLs 7GsHdlpBg4Cmcr5WZwl5570XWYTW2WY79ZVC4/qEF/nDQq5J4ez7sOS7aKLGcZSKhuw4 lBS854w+GFKllYfkyWKr1n1Aou2/BU8u4A00T9yPn4a0l84AHPWKF7YrjpTmvpndlCYM ZxyQ== X-Gm-Message-State: AOAM530w017lU2ofpiFDemfbzlMCr0L4GFnLuSAVsYFrEkV55pv1/Zbb JASGTlQzs22OAPOeC1ENSe7sgn00DGqrFA== X-Received: by 2002:a17:90b:8d:: with SMTP id bb13mr23683552pjb.98.1624239294431; 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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:54 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 23/26] target/sparc: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:36 -0700 Message-Id: <20210621013439.1791385-24-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::629; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x629.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" Cc: Mark Cave-Ayland Signed-off-by: Richard Henderson --- target/sparc/translate.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) -- 2.25.1 Reviewed-by: Mark Cave-Ayland 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 */