From patchwork Sat Jul 10 15:31:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 472365 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1373515jao; Sat, 10 Jul 2021 08:53:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfpBrqxWn0//vUx/lYSspvzOojAkmbLj7fMTaqd8lmEylp5sLtaJK85TSWhJJf3igblWgD X-Received: by 2002:ae9:eb8a:: with SMTP id b132mr12811070qkg.208.1625932417245; Sat, 10 Jul 2021 08:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625932417; cv=none; d=google.com; s=arc-20160816; b=ZDIbO62RkepK9P3CHjgGJsQ1Fa9PivUJbIj21MbHydeul7fidRlNwNEIvO95zmuW2E 0Bv1kpKlQsKiF97weTys/VwvRWWJGmEYt7oo/a9Qx2TpoGSrODUMjtzAYKLig8RluZb+ P7dl4iXSBLzfBcKu85+APcli0eUCPONMhZ5Cl6OqzofmwUeD1vk2GZ43IPjQte/3bfkL aSzFCPPCyQkHTK++xKuQYrwrBwa59fClcJRtSjI/dYs3LxYxCm2jdl8Hy8kUH+Db00Gb /LDWZrJB+tPU9OwHbd/eayS5U8tZvAqNe1JnfHqtKRpFND0hB30q02W3ftMwGKOWT7YS pNFg== 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=HmrvZ2YDmFmQRowDiyGgkhSWbFuv8fekjQLGpsBU/NM=; b=WBydkUgAK/4fUIBBDVaVnp28HnmscB7hEGEOTEx3Vx2GGE+u7SOC8+CVvS0yQduiMy WUN9esAeWLPI5oG4ogCk4rNPitsHP/b5bp/9rAlpu0PJpr8IVu6uZ63S2yzFNvSck7S5 G6j/R4hRzIEj2wRPqRCih1L0Zg1iyOT4x1/plnqpVSX/ZAKZth8WrW5xYBBv+lGN+wBv ZFL7zOqRVsCQsJlcf3tblNdFGf/6kxDsWP4w0ruMnjIgWcaiw7Tjb7PxT4C4xWwnLiSB yNy2CR+rn3Q8CsqtrWFzODdjmaN52fHy8qHIAh2RP+cht0+pX+C9YHu/wwiaAfBzSIyl uKXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qUEtvDtP; 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 c10si5143980qtd.63.2021.07.10.08.53.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Jul 2021 08:53:37 -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=qUEtvDtP; 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]:34616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2FIO-0001la-NE for patch@linaro.org; Sat, 10 Jul 2021 11:53:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2Exc-0005zv-Q1 for qemu-devel@nongnu.org; Sat, 10 Jul 2021 11:32:08 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:34638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2Exb-0002RH-2q for qemu-devel@nongnu.org; Sat, 10 Jul 2021 11:32:08 -0400 Received: by mail-pf1-x434.google.com with SMTP id o201so6620817pfd.1 for ; Sat, 10 Jul 2021 08:32:06 -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=HmrvZ2YDmFmQRowDiyGgkhSWbFuv8fekjQLGpsBU/NM=; b=qUEtvDtPYfegydw0pJYrorQFMFKSnTz8nE8dsHS4vddDrUVd94+OTyLP5WuxXJZCRO f8HCDzZxF9AbfvlRboGgpoYN8r1WHGivIvCIAY+hVYwFn3zqJaQwcU05Aq+GxIytEPF+ Dv45MWagTfv+bIRI57CrbmgSqYVG+H1rR+56zisKRudCiL8zk8JyaY41JDcrFIXtq8YT bvBrGElh16p1RW0y+B7eZyb2w9NPak4mUBe030aqZOtgczsnBlMBguIiyMgbHggaFMg4 9kC4wO3a/EXFLdJZYhI6f1xFw8UU0AbaeeSNvcEoufszmgNNaIaJmw5FdyZRtiPslQHf 409g== 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=HmrvZ2YDmFmQRowDiyGgkhSWbFuv8fekjQLGpsBU/NM=; b=SQeUawYgcO1L+bKtrB+xB/8qIqZ/CFpk2SX/D4QqjKP0JWF3m6N+Na9fPUhfL3TuPf d9rniynlrUXDWGUXl7O1XVspAZPpSOQuPgxkhWR8aUHDMGEtogw/JM5SIRrStWs0Am8a ojiDptdS0QBhD0oVngNmn8njVTavo+FLP2gBFvrbddOjEjbMlSbTtfbMvmk5U7rHLmAc 84/Dr/XkpBBRSPxaO5d09fzDrrt0DzNnjXjLjPG5LieoPnVS/biv8ByjkfvGxo/JpS9o apciHcc+w9vQtd9qsG1c2FwfpeVY37j0YgeArGu53MIROFw4XTxbx/5AvC+EbY70I0Nk UtuA== X-Gm-Message-State: AOAM532GBNhqj7b1gLD0ZDKbL8KkET3n+n7AnVZe2ugYlZucTiotO6oz 2E2eYZ9qJ98aMwcsBa6sz7SR4N3ouuJ6Zw== X-Received: by 2002:a63:ba1e:: with SMTP id k30mr8226441pgf.39.1625931125806; Sat, 10 Jul 2021 08:32:05 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id u23sm11975374pgk.38.2021.07.10.08.32.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jul 2021 08:32:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 31/41] target/tricore: Use translator_use_goto_tb Date: Sat, 10 Jul 2021 08:31:33 -0700 Message-Id: <20210710153143.1320521-32-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210710153143.1320521-1-richard.henderson@linaro.org> References: <20210710153143.1320521-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x434.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: Bastian Koppelmann 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. Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Henderson --- target/tricore/translate.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) -- 2.25.1 diff --git a/target/tricore/translate.c b/target/tricore/translate.c index 2a814263de..09465ea013 100644 --- a/target/tricore/translate.c +++ b/target/tricore/translate.c @@ -3225,19 +3225,6 @@ static inline void gen_save_pc(target_ulong pc) tcg_gen_movi_tl(cpu_PC, pc); } -static inline bool use_goto_tb(DisasContext *ctx, target_ulong dest) -{ - if (unlikely(ctx->base.singlestep_enabled)) { - return false; - } - -#ifndef CONFIG_USER_ONLY - return (ctx->base.tb->pc & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK); -#else - return true; -#endif -} - static void generate_qemu_excp(DisasContext *ctx, int excp) { TCGv_i32 tmp = tcg_const_i32(excp); @@ -3246,9 +3233,9 @@ static void generate_qemu_excp(DisasContext *ctx, int excp) tcg_temp_free(tmp); } -static inline void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) +static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) { - if (use_goto_tb(ctx, dest)) { + if (translator_use_goto_tb(&ctx->base, dest)) { tcg_gen_goto_tb(n); gen_save_pc(dest); tcg_gen_exit_tb(ctx->base.tb, n);