From patchwork Wed Jun 28 07:12:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 697222 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp4194860wrm; Wed, 28 Jun 2023 00:13:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6V7Sjg3JeJcUF0rdM7cCcWDQeXVIGo4UBc76pyQK3LxYGxl/y8FzmxYy46ZihslVU5qiLm X-Received: by 2002:a05:6214:e49:b0:623:9ac1:a4be with SMTP id o9-20020a0562140e4900b006239ac1a4bemr39880804qvc.12.1687936403705; Wed, 28 Jun 2023 00:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687936403; cv=none; d=google.com; s=arc-20160816; b=bgaj8YPTqj7OrgBdCPPkZCZKzLLpTykOIhPpWnz5Gum3R1snM7liTBczLsBueRflA2 KTMc4UnxLRhVgEznRRj+7Sjph3sUWs9qUUZWBj+fQtOY//d1pFg9fHZKQ/3xAAcZNkAa xcZisKvrxdMoCTpfAyqHFqDtiqPwrIhUAAqVC+3uEph2RnvypUYqPF8qutyWahzNSn9X WJjwwteP8UgfLqhtvxGxoNch+C3vXhMQzuMInuMx5667kNA5SDRNFJBcwvo22DlEQA3D qPayrf0zuDHLuPZIM8mQh0TSPMIvFqqsR0lHjBx6aFzJhHIRC7NbYgsZBmX7iZj+nwc6 1W+g== 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=lVxMdYHFaukC6RxhKHYCpwZeKGUEXTZS4jUfSlEXDBo=; fh=GkmytpQ/aBK+SnhsUxtqa1dYh9qnVue5D4c8ejqHfb0=; b=tLK5yr+jAxUwxeaTkUqN4AUwbixOccI9WufbN0nUU1POzOefM2Jc1OOJ8iKRXlwxn7 tFNL3hYceZ9Y3asTIqU2oPObBceGyRoUYja4TyMrpjVAuzfArNUqGPWU1fQ5XlXGlndt SNyBa7Jkui2iOgtP9IITmqWY2nDyOTtNj6MtIrpOQ7gcn122tS9gVUVrkA1A/stTrb3b i8vN7B/4rpy4DkG0kv2+JlWXKt7Wx/tiVMTm0XNYIY0EIaq8yNVx6dUtzBzr8scLxdZB su5KVartCVQnnAQlkbnpiuOJV6lDfCd/eFD62EDfTBaCB3bw6oPIYAmGEl6PTF5t7ld7 EtFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QdVDjh9T; 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 ey7-20020a0562140b6700b005eef65c2850si4678947qvb.25.2023.06.28.00.13.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Jun 2023 00:13:23 -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=QdVDjh9T; 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 1qEPLr-0003KF-SZ; Wed, 28 Jun 2023 03:12:31 -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 1qEPLb-00035D-1u for qemu-devel@nongnu.org; Wed, 28 Jun 2023 03:12:21 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEPLZ-0005Jv-B7 for qemu-devel@nongnu.org; Wed, 28 Jun 2023 03:12:14 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-313e34ab99fso4601131f8f.1 for ; Wed, 28 Jun 2023 00:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687936330; x=1690528330; 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=lVxMdYHFaukC6RxhKHYCpwZeKGUEXTZS4jUfSlEXDBo=; b=QdVDjh9TDhi2MATF9uknK2hMEq1oIATiyryU3c02MV1WTUK2Tf5lPNA10MkoEb8Tgj 78do2pgqkechdUlLzrE5EKO59tpG8SqSGpP0axEY+QGDSAaDY04JzLPR/L/4jIcwjL3B wceExmfQoErQyr+TD/EdehZVIKe8Ea+otvoUVswpDSyshUSb/WyzaZBn9HQnus0if+co rg92niiztLv7cVe0KD/uADayT8jcsmGJQm4pxdkxRLmPIhnTkIgMZ8KUjQoiAgtyNZGU 8iRDQIVNzLg0AZ9UICEcAGTv5HVRXAzBMqRa7SjRh8MoJSJTHosp++E/o9Ah+gtCOlCW yqZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687936330; x=1690528330; 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=lVxMdYHFaukC6RxhKHYCpwZeKGUEXTZS4jUfSlEXDBo=; b=bR2DHxCJcDE1amZnwRCslA7R1YmWxYInzL7fCh1uBUuJ78s/Ptt5kcU+o5elbjs8mM 2tUWB5ImGvT5QHaiKpqfDCp6dkjuC08ShWpyI7nR/KKoW+ZoE+kkhgS6rCOJoAFboVBy 78sTrBbIx/di17dXYkFFZeysdnpHJN7ZD2Xy5ddPVkgwrc145NLTSt8LRNWSfPewi4yb YLCnBkOj0edRI3w+K4TncynB2zJMrRrWl+FDKbqk2t3SWrXDAmF+ijwYaF3VCJIfAJVZ kd5Ze08mtZt9VOjUALvPxRHnzaNB301jj4XHfPnWP0dtX6lUtArfN/xniCTy41fGwyhz XIFw== X-Gm-Message-State: AC+VfDxgkECDk3iyjyqwMzs8i0HXUq2BseGqFNPcc4vNH+TybiLMcMfr kgmGCSRg2gCX4zHdFNthaEo5lpXT+zAM7b2BkcwjLNVV X-Received: by 2002:a5d:6785:0:b0:313:f990:c631 with SMTP id v5-20020a5d6785000000b00313f990c631mr3741094wru.44.1687936330083; Wed, 28 Jun 2023 00:12:10 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 00:12:09 -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 7/8] target/sparc: Use DYNAMIC_PC_LOOKUP for v9 RETURN Date: Wed, 28 Jun 2023 09:12:01 +0200 Message-Id: <20230628071202.230991-8-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::435; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x435.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 After the register window unwind, this is for a plain indirect branch with no further side effects. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/sparc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/sparc/translate.c b/target/sparc/translate.c index 17afe98523..9148e33283 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -5029,7 +5029,7 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn) gen_mov_pc_npc(dc); gen_check_align(cpu_tmp0, 3); tcg_gen_mov_tl(cpu_npc, cpu_tmp0); - dc->npc = DYNAMIC_PC; + dc->npc = DYNAMIC_PC_LOOKUP; goto jmp_insn; #endif } else {