From patchwork Tue Mar 26 18:35:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 782634 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp1831808wrt; Tue, 26 Mar 2024 11:35:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW7aIRE5bix/PC0qWzASOnC4YJcVxShP0gy/ndJRNYyAxnH7I++syj8Dsyts7T2SSd9PzEyjZP7m0hWmHnz2Ubu X-Google-Smtp-Source: AGHT+IGACeeWSXotut8MIRptCtcn8nKcogVMdPFvCNzOjEqRDEI+/hTSPJ9V/RABYQEc3uyfnNon X-Received: by 2002:a05:6870:4402:b0:21e:a2c0:fd1 with SMTP id u2-20020a056870440200b0021ea2c00fd1mr2179677oah.34.1711478155050; Tue, 26 Mar 2024 11:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711478155; cv=none; d=google.com; s=arc-20160816; b=Om3mseesAePRJo4tNzzw1kdXrrxGON1Q/EnSLNbTp91Ml8RKSNyIXrXchaedW/Pg5I GLmYvf6ZD+k7U2FBtKfoH4jRldyMI1ER5NEcD37q20V9z3nOUd8J4dBh+PvLJ/y9hLrf XrM/OJKOm5feOvDeVKxZJOfjxilFS9x95UeTxV+B1MO3BI9yJtvYll/tv2AxDvsg8INJ gze4mGSg0ccEZqhU5bIyrssoAAp1wkf8tFMfXdplJFk2smwPxpxTwEfpExiTpcJ8iYPG nsUzqiYUqyYOCUTcGsteIyABtUNkeuGrkhPTG3ltoLuuqKIdbYN+OoQFxJo0O69HCNrt 1RmA== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=d3Y+djHmhYci9G0rS3WbK7XjPwy/e3F6FGyqyBr1W6k=; fh=7TUP3a568V2DtgzcKyNKFyyT0JI+U3xe4b/P9YgBPVo=; b=pXHgDo98bRp5yc5Z7KF7dutgohN8Su50SBYkA3rDhA/cGljYpw91ObrdcuQWSdSxO5 GHv6ExthqDAZ9ZSMpJlJcFg7SL8MHYPxiUx17oWKqFc0Lax49Pg1GBaQY+u0GPmWRJ+r fc/vUFgnn3hjQSCI6WwcTvTd8p46HjrxlOB8RTrVSaZ0h800O2OsFO0/yVsaaihxbHVB DBX0zrTvec6wqoP45mgJf2UBECxarjlDXVg3kC0HTeWqWemt7R63WrrM1P9/asgpLQDQ 4sGF8CwKEf55eBlG943jPNAiukdaG0hSYkWZ+2Il2u1vuQcak+UIiP5jl3VDhYYcnOrB eCMg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OZclBYfk; 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 i9-20020a05620a404900b0078a5e6b9773si3285235qko.198.2024.03.26.11.35.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Mar 2024 11:35:55 -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=OZclBYfk; 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 1rpBdd-0004VR-OU; Tue, 26 Mar 2024 14:35:09 -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 1rpBdc-0004Uc-FM for qemu-devel@nongnu.org; Tue, 26 Mar 2024 14:35:08 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpBda-0002Jo-S8 for qemu-devel@nongnu.org; Tue, 26 Mar 2024 14:35:08 -0400 Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-29c7512e3b8so4493494a91.1 for ; Tue, 26 Mar 2024 11:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711478105; x=1712082905; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=d3Y+djHmhYci9G0rS3WbK7XjPwy/e3F6FGyqyBr1W6k=; b=OZclBYfkQp31hbj/fOvnuKxUgp+g++I/n8Xs+5mwCxvvC2YurfrVMHxc/sF+RPmdsc ddXv+oqJXQpyLgxusFRdmwtEkp66HnYE4uPPTWxOcJgnX4Qt4RFKJB0GN67zfllU9CaA VQDNg+emExq0ZrZ008c2YRAs5JknVTrzSNJrw8sYloO1joGxaAAyDqn4kL3aFJzkJBWs yl0b/jkvUZXXmDAG65KZMwd4f40ywehZb4AiQ1m0bEuCgvKbzq/OoFYKlzlNVR5gbqmN LMMMkqGmD5oliNNYMkoQsoaarAVSxxI16SbhWRSqgBBtaMBd5Mhoq8W2K7LfDZFP6/67 Y/Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711478105; x=1712082905; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d3Y+djHmhYci9G0rS3WbK7XjPwy/e3F6FGyqyBr1W6k=; b=nbogQCX85LTQEmYTNsHCataPjYVL7FVjDxx7VVhToMqmA6GmGdCKbciaPQ/192dfKD djTNnDOjFM0+2mq/LfpBUy313EmXlSVd0WYjKWRBOi7LQb0Er8adexB7gjnVfdzeGTjo DBLRaGcUTuDRPoynbteatWAp0UhWlW7uat9CI3J0k9dOlGm/SDA3z8kI0U+DZxCzMeLp nj2PRe9JjynfKmcM5R2/J6DdfXImbpyblSICK18rV5qf021rfpwFPbdkZZ9SNTtQvazh NbRu8kaxfQJsIoUhgbJUDhAHwRNSBlB8Si65n5VLU9o+CxvqtyroKpO6EgRdqHFHZu9u jwCg== X-Gm-Message-State: AOJu0YxY1KxtDiGWfZ4DKOHcnqVcpWCexskuSQOgMM5XZzJTUeVkbEuz QwWvm3b8fNWC13KcRcp64wfeJ5wLk7Az1KqIyWbfIRa3IPUxQHnEm1NIQdkKfxr2+64Yx9XUjAj A X-Received: by 2002:a17:90b:70e:b0:29d:f7d2:ccc8 with SMTP id s14-20020a17090b070e00b0029df7d2ccc8mr2236640pjz.0.1711478104659; Tue, 26 Mar 2024 11:35:04 -0700 (PDT) Received: from stoup.. (173-197-098-125.biz.spectrum.com. [173.197.98.125]) by smtp.gmail.com with ESMTPSA id e1-20020a17090a9a8100b0029e077a9fe6sm12269310pjp.27.2024.03.26.11.35.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 11:35:04 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Sven Schnelle Subject: [PATCH for-9.0] target/hppa: Clear psw_n for BE on use_nullify_skip path Date: Tue, 26 Mar 2024 08:35:01 -1000 Message-Id: <20240326183501.333914-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102b.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.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 Along this path we have already skipped the insn to be nullified, so the subsequent insn should be executed. Cc: qemu-stable@nongnu.org Reported-by: Sven Schnelle Signed-off-by: Richard Henderson Tested-by: Sven Schnelle Reviewed-by: Philippe Mathieu-Daudé --- target/hppa/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 143818c2d9..8a1a8bc3aa 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3948,6 +3948,7 @@ static bool trans_be(DisasContext *ctx, arg_be *a) copy_iaoq_entry(ctx, cpu_iaoq_b, -1, tmp); tcg_gen_mov_i64(cpu_iasq_f, new_spc); tcg_gen_mov_i64(cpu_iasq_b, cpu_iasq_f); + nullify_set(ctx, 0); } else { copy_iaoq_entry(ctx, cpu_iaoq_f, ctx->iaoq_b, cpu_iaoq_b); if (ctx->iaoq_b == -1) {