From patchwork Wed Jun 28 11:44:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mark Cave-Ayland X-Patchwork-Id: 697232 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp4295104wrm; Wed, 28 Jun 2023 04:48:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6RuusnLK3uresD1q7JGjq9ET21a+kKp4LftrOAzeDGJWQxymJfMoGM/eV1PbIS/u3ijNaZ X-Received: by 2002:a05:620a:4552:b0:762:1b77:c349 with SMTP id u18-20020a05620a455200b007621b77c349mr48442910qkp.31.1687952932904; Wed, 28 Jun 2023 04:48:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687952932; cv=none; d=google.com; s=arc-20160816; b=YdFTcY54GMN8IHGvKhkCAKFseOfx+BZy975SwRjLHLpL+1sMSczy6EYX+VWdAEJxqy yx8syCMH1iivVH9Lak445dt8P1gRuqs3ONi3dz4Om2I9bqD+bi/AUS6FW0zCfMoMxJOZ Pa7k7EZjOWU49XniyOU5bfDWIe40mxT+VBhQ5D+vdX3QdCHosPwWHYM5QqTmjfgqwI6d X5YkBpAg8kLTfoL1Snw5BMbfhav7QlWllBtwRZ0oaSjzw5PzX4cjf4z92brWLzmFxBJe CajLbQvHFOo5Sme9fQDt5aiirJvs5OiReKzZ0IPnvG1XIIwWzEzsqkPrTJX0v6szZV35 yVlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=EwVYgIJkKuX6qaEES3ORCAC9rPrXsnb3WcOmlW8B9yY=; fh=dxNoli/Xs5PJEU4/5g3muAZqP4q86W456+YpDLBdAUw=; b=vaz8F1gulgAkQEfyY8x5+HakO6wmPXrpJEJOfAyb5sF5f3fgheA+3PCA21po86My/n Y01F+pzJfpXveGv1yyCFgAf/3EoJrlK5C4ZPJm4nGPASw9ZcK2a9EhEYRUu/Su110Jb3 sIHdn3uDOaTxgZxZ9RT0K3YyUelrTDH+xhr2obMTMOM8/v/ULmkC8NtXV3HDUt2PkHvS 0+TM3PGr0xkPew5sFtvc5DEvqyK0jmWTXupFMDio1PIDg9aDxMpO0cx5AXN8KNMqVyE8 rbR0LCq88orT/ePVAviZf0jhjXuaIMb9Nq/r1PhjMGYFIVvvEVhn2OGqgu2dNEQZUQAf kLlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ilande.co.uk header.s=20220518 header.b=oPGccwFx; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ilande.co.uk Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id tn7-20020a05620a3c0700b0076719299da1si1286018qkn.766.2023.06.28.04.48.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Jun 2023 04:48:52 -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=fail header.i=@ilande.co.uk header.s=20220518 header.b=oPGccwFx; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ilande.co.uk Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qETcA-0002TM-3q; Wed, 28 Jun 2023 07:45:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qETbw-0002GR-OR for qemu-devel@nongnu.org; Wed, 28 Jun 2023 07:45:28 -0400 Received: from mail.ilande.co.uk ([2001:41c9:1:41f::167]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qETbt-00053f-GU for qemu-devel@nongnu.org; Wed, 28 Jun 2023 07:45:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ilande.co.uk; s=20220518; h=Subject:Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:To:From:Sender:Reply-To: Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=EwVYgIJkKuX6qaEES3ORCAC9rPrXsnb3WcOmlW8B9yY=; b=oPGccwFxMoeAReRwLPcPst7DJD 1wB2x5hEi6O0Zwc7X8b8shATzq5ZxY/w3ZQXQSqVhVLCwtyOHgLqxSaL/55t+k/866W0xhsiNk/vj 8ycy1lUzLepk7UYrRaqV5G9v2bTtHEIs8pg0hxcxY5GjTz6eHnHRqEq147E/AHniKfnGvDRD/ZDME cqKBtO/ynwO5A24sWGPpibQdo4mNND/aONZJGbHd509aeT6t+0Npc41NyfTkGJ2C/RS4O98HS46Po iW3fLR0SxUOg25tmUDyghABCdMXsmlG/gFzJxTO00bJ1nFo+Ym6rc0fJqEDhSsrvfIjnospwmjBsa C+hijygBkwMWahkNUsGVX9XQc+3q2O7PZk6BllYUYjolPLPZNujos376Nl267Cl1ETDfVflu/pAyo XLyhj0WERidf2fBrYNmqX60+i7gMMwISVbzz1HPiRgFO47oxBT5dSasxdk7q13Wg+urUaOTkXRq3e 6OqINLtaFo0mSX+3qFQmo8MXnORTfoDDk8B0njywEtJpDFIgzr+1UX5Sb5PLp9NvSFgky5lG9z5GL mcm4P5awyIMH46XQ8goJJWs8OiUB75D3PE2l4T72xlZ/pA0LBD60W7dlEZnopzkir3xOpetC7QoQk 4VyozcYdb9pTu4c0LO8Gn8zOyExUmx5NFzZAYx7k0=; Received: from host86-130-37-216.range86-130.btcentralplus.com ([86.130.37.216] helo=kentang.home) by mail.ilande.co.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qETbf-00007c-CX; Wed, 28 Jun 2023 12:45:11 +0100 From: Mark Cave-Ayland To: richard.henderson@linaro.org, qemu-devel@nongnu.org Date: Wed, 28 Jun 2023 12:44:56 +0100 Message-Id: <20230628114504.546265-3-mark.cave-ayland@ilande.co.uk> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230628114504.546265-1-mark.cave-ayland@ilande.co.uk> References: <20230628114504.546265-1-mark.cave-ayland@ilande.co.uk> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 86.130.37.216 X-SA-Exim-Mail-From: mark.cave-ayland@ilande.co.uk Subject: [PULL 02/10] target/sparc: Use tcg_gen_lookup_and_goto_ptr in gen_goto_tb X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.ilande.co.uk) Received-SPF: pass client-ip=2001:41c9:1:41f::167; envelope-from=mark.cave-ayland@ilande.co.uk; helo=mail.ilande.co.uk 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20230628071202.230991-2-richard.henderson@linaro.org> Signed-off-by: Mark Cave-Ayland --- target/sparc/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/sparc/translate.c b/target/sparc/translate.c index bad2ec90a0..28d4cdb8b4 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -318,10 +318,10 @@ static void gen_goto_tb(DisasContext *s, int tb_num, tcg_gen_movi_tl(cpu_npc, npc); tcg_gen_exit_tb(s->base.tb, tb_num); } else { - /* jump to another page: currently not optimized */ + /* jump to another page: we can use an indirect jump */ tcg_gen_movi_tl(cpu_pc, pc); tcg_gen_movi_tl(cpu_npc, npc); - tcg_gen_exit_tb(NULL, 0); + tcg_gen_lookup_and_goto_ptr(); } }