From patchwork Wed Jun 30 18:32:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 468725 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp616100jao; Wed, 30 Jun 2021 11:45:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsSS0mLteLWpEA4DrhdTM3PMkAxiOGHCo0l+azeaz1PpGEiVFyGV+wEcd4jvmej5ROnk2o X-Received: by 2002:ab0:2144:: with SMTP id t4mr35487616ual.75.1625078750177; Wed, 30 Jun 2021 11:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625078750; cv=none; d=google.com; s=arc-20160816; b=0oMy68eTeJ6VfQg+M1SntY6ciqyb/fLjTfwsKLPwfRcqTqzEOudZnkqpcQpqV8rMQ6 XR0U9IuAXorgdmjOqrq6IjYzzo0/cgis9rIYbD8MP/WttE3PIEhzJ/Aj3YfnWHGBwADY byaMUu2DaSYuoC1XPUUVNRpBdL14w5OTf2ZFaxucwPNRjMqrJ7zvHZHtosgYfhYbnBpM VC4NDvO3iMmU6Zs1AK7kbJzdZI0JGX9fGdl50fMoZ+0hgxNhRjo6yMcuDHLZc4cv75kc gj2P3EWH359FJBT3zyyhXCv0zxWM+hj29mFZb7/sIOk1q1tYK4FdCCFwu9kEyWM736DT PunQ== 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=A7hAexeBQ5Ar+tSUN9C4Tdw7ktlK4SgTVxbaVoJ2i0s=; b=AivCB6/qjJzs09gWS4wFINaqVhlqsphcuPHKC/rszxflyQayPGJwfAyR7X2prWBzOX BMjrBG35ckTq26ui0XtP3qFOjy97ZmOA4HH5ubzxEszsjHjlKLz7CAwGaaqAnw8GlZyy iouQcQxo76pe1Wx1BVC23UA/LcwoiZtHjLmNNjWec2qdQywPChQkcFx9ocMr+aPvTGTe fFS6q+05lRWbdiZzAJCCb3dYVUYDup/+YxR+Lo9qNx4kfCVkmA5USk1igeX7xrdgDli8 0GoyfXQZYpKyKYNEbn1xIhQWf1jyTCVL9uQAsZql7OkixGr3aL8tObk291MtuDJBJt2h u2ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ihCziMj/"; 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 k5si9654314uap.243.2021.06.30.11.45.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jun 2021 11:45:50 -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="ihCziMj/"; 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]:35728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyfDZ-0006oR-Hd for patch@linaro.org; Wed, 30 Jun 2021 14:45:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyf0r-0005Rm-UN for qemu-devel@nongnu.org; Wed, 30 Jun 2021 14:32:41 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:34677) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyf0j-00020K-Ge for qemu-devel@nongnu.org; Wed, 30 Jun 2021 14:32:41 -0400 Received: by mail-pj1-x102d.google.com with SMTP id g6-20020a17090adac6b029015d1a9a6f1aso4331155pjx.1 for ; Wed, 30 Jun 2021 11:32:32 -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=A7hAexeBQ5Ar+tSUN9C4Tdw7ktlK4SgTVxbaVoJ2i0s=; b=ihCziMj/HTV/Xl6uB6kQNq0V72HiCYO8CxkfPy453TKNlddisyHNuLIwOvXTVDgztH JYwznkd+mXm2SuWa3IBZSJN84BIKzIsCRNgskVb8IvYzkoUTI2O+aja5rj+GFmfN6j5W etHACZr+JOZBnprXC1w3Dy+Gj5x1pqPUTLT4tf7QuwHs5+GDXBWiMcISv6BOiJryMx42 zKb1vo+OelWK9tOuAMOxmuNndBB6YBsr3vEJkSFTgeRgLXgZu6fwVcjZdDDZrYBLXgfK PYUjdogpDSPHDAaZvu5A8Vz1inNRtAkBb9uozZ6AlGmf44zugTyB0WiJHEtGZ7D29I1p ByVA== 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=A7hAexeBQ5Ar+tSUN9C4Tdw7ktlK4SgTVxbaVoJ2i0s=; b=JAPi+JPiEdOeeB1kGAkYYJ0zYanxiJa5I6x1s8DJ70Xd2BvVz9gEX//+OqOKg5pYl6 05mG0Rxje7pLfCdcfED41X0sRRq3csh/cup8Pdh/8xy2bPDZj/QMPQ5/RhHxn3lirIEV NzW9HD8jWjbRKeyoDdKxMehyZwQLEUwOIpL9VGofVNr/aIvj0NpvrTxxV/wAMYafmJQp ZONAcyY37PJMNXwplN3G9EjP7y4hDqLlfiXMZnv7PyBbrAE8I+HtbK6xIQyyh4VGTu2i GdmqhPCd3VQIbUtqD/n2Bt9K8te7khtLijpzkph0fNl+PP6Gn8jH7w9x+NEfeuy2uou1 04Nw== X-Gm-Message-State: AOAM532iCaLGAjHj9cQ9NTPcMYB79vgKY/10ap4b5hpMcWxBPtrkuOca FJCzFRn7cnvNJl7i/Q8o8rAkwwXAQuyD4w== X-Received: by 2002:a17:90b:3697:: with SMTP id mj23mr5658760pjb.118.1625077952128; Wed, 30 Jun 2021 11:32:32 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id m18sm23909517pff.88.2021.06.30.11.32.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 11:32:31 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 07/28] target/arm: Use translator_use_goto_tb for aarch32 Date: Wed, 30 Jun 2021 11:32:05 -0700 Message-Id: <20210630183226.3290849-8-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::102d; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102d.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=unavailable 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: qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Just use translator_use_goto_tb directly at the one call site, rather than maintaining a local wrapper. Cc: qemu-arm@nongnu.org Signed-off-by: Richard Henderson --- target/arm/translate.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) -- 2.25.1 Reviewed-by: Peter Maydell diff --git a/target/arm/translate.c b/target/arm/translate.c index 8cd31feeaa..87c3c09df5 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -2509,16 +2509,6 @@ static int disas_dsp_insn(DisasContext *s, uint32_t insn) return 1; } -static inline bool use_goto_tb(DisasContext *s, target_ulong dest) -{ -#ifndef CONFIG_USER_ONLY - return (s->base.tb->pc & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK) || - ((s->base.pc_next - 1) & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK); -#else - return true; -#endif -} - static void gen_goto_ptr(void) { tcg_gen_lookup_and_goto_ptr(); @@ -2530,7 +2520,7 @@ static void gen_goto_ptr(void) */ static void gen_goto_tb(DisasContext *s, int n, target_ulong dest) { - if (use_goto_tb(s, dest)) { + if (translator_use_goto_tb(&s->base, dest)) { tcg_gen_goto_tb(n); gen_set_pc_im(s, dest); tcg_gen_exit_tb(s->base.tb, n);