From patchwork Wed Jun 28 07:11:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 697218 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp4194619wrm; Wed, 28 Jun 2023 00:12:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4udoO0fkfPhCbXZAxBUF41xGeabifE8EP1IXfUoLDhowYzdQ29oX3tsEcJRNqqbBJa+WKO X-Received: by 2002:a05:6214:19c2:b0:635:c247:312a with SMTP id j2-20020a05621419c200b00635c247312amr11796031qvc.53.1687936365386; Wed, 28 Jun 2023 00:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687936365; cv=none; d=google.com; s=arc-20160816; b=T6F2tHxQwqbWeAVzdZFQHkNLRrqiSRb723SSw/7+bfctX4K4h7ma29xZM/SA4/8Z7c QLKaPKEAwUGHXMJljoBZ1Ip3cCgNwiKXFlwpDyrCzsctI79KO1yhSUePIXBYj+v9BYnb DsTDb3HyvhHJbql2uGTh+O7pvWZE3Wimsjiz8ssoYu5p5I4b4Nb9fhgXwyqcIwZ11MQS fUH9Fk/TKJp/T+PFLjtscpyftnGBVy8qQBto7KuwJr4Uc9QF+bRJK+4Emvq/I/39GcUD ypUq4/MU3uMYx0ymMcrWxP8IDPNPXc6tO90y79o7ajwfQilBI9KjIEM1gIRLF7ipYqab Hjow== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=06/nfmzpqd2IPJxz2rAclG7vHC61gjlvdFyJU1ybC5w=; fh=GkmytpQ/aBK+SnhsUxtqa1dYh9qnVue5D4c8ejqHfb0=; b=Z9L6Wlg5hMFfkmb1AODfeW2ySV98dA4895Zw9ghoH7nKcyv+5UjT1TSWe59rwzsq5T YSUCJHrowqX3QI6ruzrOgYge6bMz6MGhbp1mg1jjisAdob8ZUOA+Ixx8r/m8RPGL+bLT xxqMF5y3aviwuXVeyQLhuVLD553UFBDXPkTkCgYd3Ykr4RmbC96KO8IhdoRjsgJAPSHm oqEVaLlIDoCb/dN/qUQTEGPw++SQZK+OmmAj5/azOrF5C/IZH+35Ca3dZi6/QTlzosoA rBioayYP1D4QoxAE7GXkYpBx0E6TTm6+5/sLxc4Kim+20x8y834zwmFupEz9T3oKCYd7 w1nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ktVNqF8V; 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 gc13-20020a056214230d00b006263f946463si4436664qvb.155.2023.06.28.00.12.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Jun 2023 00:12: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=pass header.i=@linaro.org header.s=google header.b=ktVNqF8V; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEPLq-0003EH-1W; Wed, 28 Jun 2023 03:12:30 -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 1qEPLZ-000356-JF for qemu-devel@nongnu.org; Wed, 28 Jun 2023 03:12:16 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEPLW-0005JK-A4 for qemu-devel@nongnu.org; Wed, 28 Jun 2023 03:12:11 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fa99742bd1so29472425e9.3 for ; Wed, 28 Jun 2023 00:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687936328; x=1690528328; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=06/nfmzpqd2IPJxz2rAclG7vHC61gjlvdFyJU1ybC5w=; b=ktVNqF8VQ4MWRKF8UkgYecYKGJh50m21cgzD6gX5vIW1w/xGjbTB84VGFLu+KDAWTU gJnyEED1XfMMgmpAXclQqX4YEITjjBJubXbJ33QeBYzkyYj+bto6gO6iB0QgnQEVELhP kn9v206DB1qu3KNF7H59cF+DBUa+pxcL82Q/r3YqMxEAfsAgQhcc2IECUo2Xl+WTa/Ip yeEvKIT4S9uIcYoCbKrMJUWLSX2cusS8lYgl0LyI5ooK1iLQZdqyNeiUta7DgbwGPb2l 857XXkP9wNaDzOVEBqWoqhROANEYXeLWbB7eKnA3w1h/yF1sGhWuzSkKXZQ4x5VmJqIC KeBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687936328; x=1690528328; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=06/nfmzpqd2IPJxz2rAclG7vHC61gjlvdFyJU1ybC5w=; b=ZQOt6FZZRp4L2F49lcYRkwSIdok7/Gqa9VaYbm5Y0A7P2DC29ewwFD5IXmUv35o9yN ALmKbDoA0+NQ4Vqq4Glx+FZw4/KSg0qYBWrDqo5XjkOeMuJP1CK6wK+ErxSusjXucVHF UvOdh3lQ3oH3tmrosWK5fbpdSZn0VkU8KOkzG+9Cg2jaMLXkJdsOwwUsmhg3aIeonyLQ JvWGxJrC9y4FwLmNEqK02EcYmPcYH9hv+74H6eF0a07q+kDtT33l3DhZ5yANDlQezsbU qt4DMPBBMs6H4zNAb0P0BqKT0UEhD3Spgve//FfW/lQ+lj/IK5uQUJH02ZnVlHaifucn SWCQ== X-Gm-Message-State: AC+VfDynfRMFj2NaTkb7/8hFVmnVL62wONgHUoGwlqdEJR2BAuJ+I/JO 1nDMZ6gdWrA1kkgOgEwomi6xoUuVEGJIW2dHFwkSWdpy X-Received: by 2002:adf:dc8c:0:b0:313:f86f:2858 with SMTP id r12-20020adfdc8c000000b00313f86f2858mr4563178wrj.2.1687936328527; Wed, 28 Jun 2023 00:12:08 -0700 (PDT) Received: from localhost.localdomain ([139.47.41.103]) by smtp.gmail.com with ESMTPSA id a5-20020a5d5705000000b00313f9a0c521sm4908667wrv.107.2023.06.28.00.12.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 00:12:08 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: mark.cave-ayland@ilande.co.uk, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v3 5/8] target/sparc: Use DYNAMIC_PC_LOOKUP for conditional branches Date: Wed, 28 Jun 2023 09:11:59 +0200 Message-Id: <20230628071202.230991-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230628071202.230991-1-richard.henderson@linaro.org> References: <20230628071202.230991-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=richard.henderson@linaro.org; helo=mail-wm1-x32c.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, 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 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 --- 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: