From patchwork Mon Nov 13 17:32:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 743471 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp1747797wrw; Mon, 13 Nov 2023 09:35:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbdbLIvMHfuBGfUTlY5tlbJN1SwzjjPc0NFcbr6pCf78zobILWWRWK0/djCcKweR2PVeuc X-Received: by 2002:a05:622a:1983:b0:418:125b:2cfb with SMTP id u3-20020a05622a198300b00418125b2cfbmr8747679qtc.3.1699896916001; Mon, 13 Nov 2023 09:35:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699896915; cv=none; d=google.com; s=arc-20160816; b=HAXVPgLg2X71UjcqR8uW73sWcbwpbOA6+Bp+vNjB7kGlvvnXuefYGUbOGU91u8HOOH //VT9qzOqi9KY3eB8iSMKpyj05E2HPR+ump69xiIo2aLa88fjaYlATu8G2y2FvzyvI7d B9CM3SX3+VkLhvuMzL37ptc/QYY/pBOYBkA/RJXLRAceL9GiSPBy1/f0G+bjsFczn/Hk VEQBCMwG849OhvUyiolYRrLAcqftknNgC0Z7KM2d4rZHA2K29pwMGD5kbnLcpxT9Z6fY eEZMZVFYAnVyuuWO+eXpZBXdD0Mqq5sNO9I0VvqWGHLc7u8LnApuGBzAiTB7BSGMHrKD wpZg== 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=VYBNYKyRQnZm5Azne5zwUk2eDMhVMq7sbSEJ06OYxG8=; fh=wDljmxUHXfz9MGj2//jPHYRc53BMWF157v8rVKELrf4=; b=kyG6d9XpMbMPmRx6PnKOoZnvBVGcx7kWlFtGSous8Mbklt/9nguMjqpET4CXogGQCi 0lO9X/k4uTqPQzlFjRTrSzxp5Dax+VCNuEBt6gxTq8/SDPRe7oDaMGGMO5XQxvAVPJPb E/4grIQtPe98BBReh1duYPs9aLdvFtxrOAtvbo2jPOxnD2+t1QZsp4qEP3IymuGT601S ntyUMOnmlst6/BNXk4DGbKAAynJvcbNW/iSqb9hl2HuOUNrF7wlCXHJIFfw11zaNppX8 8ZTbPSadrT4TB8hByWX3bh5N6ckJPh88qhYO0MxV04a9CY9tSuznrC9yXYLEtJGgep+F pv2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S0PtDprv; 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 v8-20020a05622a144800b00419563029b5si4890484qtx.351.2023.11.13.09.35.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Nov 2023 09:35:15 -0800 (PST) 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=S0PtDprv; 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 1r2ann-0001S3-8K; Mon, 13 Nov 2023 12:32:47 -0500 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 1r2anl-0001Rr-JE for qemu-devel@nongnu.org; Mon, 13 Nov 2023 12:32:45 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r2anj-0000v9-IQ for qemu-devel@nongnu.org; Mon, 13 Nov 2023 12:32:45 -0500 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1ccbb7f79cdso34221515ad.3 for ; Mon, 13 Nov 2023 09:32:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699896762; x=1700501562; darn=nongnu.org; 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=VYBNYKyRQnZm5Azne5zwUk2eDMhVMq7sbSEJ06OYxG8=; b=S0PtDprvn/PO4ELVzuUJLN8x8PQjmX0lBLjFWw+88zS2W5ZaV9Wm2bzUDazZK5tChg 84rdTiqf1Ue1XZa4SQfXzfz3c3doa4gJe33XH3AgTdeS2Fvs7Ix62Igr1ZNxDPx6WoUF sFMygBJDz5Uz6uQnwamHB3Dx0W3iiL6rXqkNj9nIwv56/ArCa2IgVv7bajU0dUgWXzeu 98wGtIsl7h49heTHntwyLnptf1xR5waCnReaVDCXKk1p33dFbccu5fnY3/4gcsJZc21w m4nF41O8ud/SDbVB5NzVnXdW3v6sXp80Cml9dFwcQy+TB1hrXddjk9gyX1sqwPNKgvNn gKTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699896762; x=1700501562; 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=VYBNYKyRQnZm5Azne5zwUk2eDMhVMq7sbSEJ06OYxG8=; b=EzQgcVOkI9K6GdbR5/5Xj0cI9oY+y770SrBnJbPftILQ/VqjcOYjqay4tMgtlbXozn WKOHioy+CMe1kgAA2K03oL7o2q+FSYMn1sqKXl8wycE1FtL1p7+tzZQWb1kJTuM3vUqM ITWISr2ZzmkIyPPkL1Pf18HpRlQadkBZXoCOyvKVOlGODl+x/PFONUJjgmLtSsioKFMI oXsLe3teCVzef1nNHFQO7ATJGNk49ZK03M5mUn6gexJ6vG4lvnGYOj3nPob3+buKfRDt rEZ7cgSWYmmHWx6LOdPkRsKlVUZzFvyy+tLpNgWCTunMINmtcdvZT1u9e+F+L4fBhtmq ZyLg== X-Gm-Message-State: AOJu0Yxq/0TVTG1OuUqDLK02Tda8mj+DmQDeqVdc7sJVAPwbM63MUIXO wy2bMDjM6Y6x8Pp2G4huy6l+eDgNvbKTBDVb2PQ= X-Received: by 2002:a17:902:f7c7:b0:1cc:70dd:62e7 with SMTP id h7-20020a170902f7c700b001cc70dd62e7mr203603plw.32.1699896762150; Mon, 13 Nov 2023 09:32:42 -0800 (PST) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id e6-20020a170902d38600b001c731b62403sm4271910pld.218.2023.11.13.09.32.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 09:32:41 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller Subject: [PULL 04/12] target/hppa: Fix calculation of CR_IIASQ back register Date: Mon, 13 Nov 2023 09:32:29 -0800 Message-Id: <20231113173237.48233-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231113173237.48233-1-richard.henderson@linaro.org> References: <20231113173237.48233-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.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 From: Helge Deller Need to use iasq_b and iaoq_b to determine back register of CR_IIASQ. This fixes random faults when booting up Linux user space. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson Signed-off-by: Richard Henderson --- target/hppa/int_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/hppa/int_helper.c b/target/hppa/int_helper.c index 467ee7daf5..98e9d688f6 100644 --- a/target/hppa/int_helper.c +++ b/target/hppa/int_helper.c @@ -126,7 +126,7 @@ void hppa_cpu_do_interrupt(CPUState *cs) env->cr[CR_IIASQ] = hppa_form_gva_psw(old_psw, env->iasq_f, env->iaoq_f) >> 32; env->cr_back[0] = - hppa_form_gva_psw(old_psw, env->iasq_f, env->iaoq_f) >> 32; + hppa_form_gva_psw(old_psw, env->iasq_b, env->iaoq_b) >> 32; } else { env->cr[CR_IIASQ] = 0; env->cr_back[0] = 0;