From patchwork Wed Jun 28 11:45:00 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: 697229 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp4294363wrm; Wed, 28 Jun 2023 04:46:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ66k4A7lDSAaQQafoYi2u7mEfPB0u9FaYE0CrJ+8zL6oJsn5T2Sl6aldZ/d1lnzsqpDySLc X-Received: by 2002:ac8:5881:0:b0:3f6:b151:7db1 with SMTP id t1-20020ac85881000000b003f6b1517db1mr44376331qta.62.1687952805819; Wed, 28 Jun 2023 04:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687952805; cv=none; d=google.com; s=arc-20160816; b=cy+JKJ8ZInbA6qRHYrONkXhNBldoKslXMC/gDmOABvh26EzsiXsp/yufMAOmKs+q44 KZQucF6CWKdRMmrhTajdXoTNwpBF0MjFl/9lx937VXGTNc6/dEX5rPZV2FAqzStQNYel BPqwTG8/iWkBbXpL1VujDApIzE1pCPJHX21vzR5amqsNso7hGseeqR8i4shbO6XlRAat 7uYsQylbLHJbnMhjAISkwsb+NM6SKZpYO9qK1Hs9rrhFxpzvLvlPRk/kr8cDZanI6rIK haYqzzSozyEZ6btFGwHTAdR81FAxBFSg7RI0cgrtLVzKW0vZO3mGsbFcm7Y4GmKvB697 d6eQ== 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=/bMeEkjfg3tpxVE70QjaEvS5dMR3vXSEfAF08boX70Q=; fh=dxNoli/Xs5PJEU4/5g3muAZqP4q86W456+YpDLBdAUw=; b=GKUtIfCiq3+4QBddBdTOAtpXueua86lPFXvcuZiYGb1JfVc7sZuN9I7ii88O5MvpDE JqhSH3PqcP8rAazNm3i4KR0k2uZHZFjIoVeCVN4Q6jVqpGTIZP/OlQgtZ9kHeaO2tV/m zF6OoeXeV2Mey+iCS4skpAycI47IdLdDEhDvvUKvLQX/sKA6VJzrkp8tgW5I5omstRsW oNGLSV34iaPVp7WDVxkt9uA5DfHCjsCrsfrACMfeNJ0ubMYf3f2WTkZ9P40ChPPPbU7K 0yhw0ywftoMnBhyXU1/UOYfGXWry1FiXRSQgVc8TzyFzb7HBizRG3Quseu7PhYMMxz4M xNKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ilande.co.uk header.s=20220518 header.b=aAdkK7e4; 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 w22-20020a05622a135600b003e4d3bae4c6si4489487qtk.739.2023.06.28.04.46.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Jun 2023 04:46:45 -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=aAdkK7e4; 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 1qETd9-0003X5-Iw; Wed, 28 Jun 2023 07:46:39 -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 1qETcO-0002gE-6H for qemu-devel@nongnu.org; Wed, 28 Jun 2023 07:46:04 -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 1qETcK-0005AX-7J for qemu-devel@nongnu.org; Wed, 28 Jun 2023 07:45:51 -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=/bMeEkjfg3tpxVE70QjaEvS5dMR3vXSEfAF08boX70Q=; b=aAdkK7e4yMAOUVvTyK/0E8o0XC YFWR9RIOrZYVpn7ZuzB5VxVYFAAjlFDRLXQxwXX+lcbIe/cR3pX+pF5vj0w5SKdxXB7LEeeKralxC B1CG/dbVYb/oIPOyFAsYEj6Cw0k0+6AizNI6XFWK1sZatwvQpluHHRXCXUfKMg22ta3iJ1Ut2EX3X dPk178cFtoqAzVJS8U2ixWlsSWSaMZmAE+cPN9kcgAUcd9SIqT+Gr25PTtAJRk2nbJnnON0aeqctL L7A1j2QchLci1u/YAnv5U5KphGQR0X9MiiTn0yfQMuHa0Tg2dEA1I6jw2gEGxTUy6YL+kYA+fbN2i KSpw+tQEdL5X3666xAuJ/vT1nEh6KfF3je971JM+Gl2hPqWoRcWQbRmxqQKyefR+/jDYQn8ocynkc uvZBNlWBSeEqPdj9/D8C6YRC4gHoacNQ4fwVHaY439Np0rtwi8zEFYUdLr1soiqaBeUhhIV2UNjws ZHNjBX2qnw44lb3ff9cZ49cggzbZFoylkSEPDnVUpGkRngk+1yTEWBnsbqBXuB6p/K5ttEmfLi0Or WPyd/N3KLLac73gkgbgEjHhVTI7Im2uTKN7WhdWgrEKiXiyK0M1plZsfe/vN2SOUo7v9VCZkCYMpj waYFX/1o9/R/mtGK3ARZr1tBrDZzcs1WJKpdOkaRI=; 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 1qETbx-00007c-J6; Wed, 28 Jun 2023 12:45:29 +0100 From: Mark Cave-Ayland To: richard.henderson@linaro.org, qemu-devel@nongnu.org Date: Wed, 28 Jun 2023 12:45:00 +0100 Message-Id: <20230628114504.546265-7-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 06/10] target/sparc: Use DYNAMIC_PC_LOOKUP for conditional branches 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 When resolving JUMP_PC, we know this is for a plain branch with no other side effects. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20230628071202.230991-6-richard.henderson@linaro.org> Signed-off-by: Mark Cave-Ayland --- target/sparc/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/sparc/translate.c b/target/sparc/translate.c index 75aa1a138e..d7b569d910 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -941,7 +941,7 @@ static void flush_cond(DisasContext *dc) { if (dc->npc == JUMP_PC) { gen_generic_branch(dc); - dc->npc = DYNAMIC_PC; + dc->npc = DYNAMIC_PC_LOOKUP; } } @@ -951,7 +951,7 @@ static void save_npc(DisasContext *dc) switch (dc->npc) { case JUMP_PC: gen_generic_branch(dc); - dc->npc = DYNAMIC_PC; + dc->npc = DYNAMIC_PC_LOOKUP; break; case DYNAMIC_PC: case DYNAMIC_PC_LOOKUP: @@ -997,7 +997,7 @@ static void gen_mov_pc_npc(DisasContext *dc) case JUMP_PC: gen_generic_branch(dc); tcg_gen_mov_tl(cpu_pc, cpu_npc); - dc->pc = DYNAMIC_PC; + dc->pc = DYNAMIC_PC_LOOKUP; break; case DYNAMIC_PC: case DYNAMIC_PC_LOOKUP: