From patchwork Tue Dec 31 19:06:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 854397 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp7064995wrq; Tue, 31 Dec 2024 11:08:02 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXZIqDTmEmkBya64oMH0MhmLpD8tBz0K+0Gw6LTk0gcWd3skYi1nhj678IWHLhxtht0mTh//g==@linaro.org X-Google-Smtp-Source: AGHT+IGh3z2gbGKClkplM7ahCi6dIUzHCNqMTVA2rMee1iaPjhLnksl06kXWx4Q6wGAZvqFH2DVP X-Received: by 2002:a05:620a:470d:b0:7b1:3c0e:3289 with SMTP id af79cd13be357-7b9bacb4f01mr6893600285a.22.1735672081809; Tue, 31 Dec 2024 11:08:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735672081; cv=none; d=google.com; s=arc-20240605; b=fvE4evxEZkBChMcUukkTTIUzZ+ozlB4F0j8emgAUZ4BRhLXyLTlxRPSMhVzUlwog7D CwT73sP7KAqGie3fhi+3e/fAk56nJx50+W7xG0LlHERuDz/Z20av8e+qfPjx9LQGVVXO l021qOWhYj9nfTZghsW/8cw7VHNpPsQWsYaZtcruLQrKDSdSur3OtN/kXyxwZoNsVi+0 fAP3Kf69OrQY07Aa//xV0djeBKomgmdkHA/8PkGQ10X/QbWn7F/Pmb467hGXQdqyccRA XyVJ/1Sy2yHyA0pf6HgtvF1TlkZ2gNi/Og0FewnqYhbwZKP3Dsq2CuTdKDq4OyKU3gAQ /Khw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=c0vE3lYtWkiDZCwAWAKMF4/xKoT2gUVX19Q6TmVZnmQ=; fh=Pu80oL6pqNVhcxmoTE7CG5kT5lPd7R2XHVDIETOmhNw=; b=Wpjxo3xJidh2RUuT9wbM/IEYu3+ykHek+vFNt/Gy4aGLdM7RV1Bm1QxU7YNtduhAmR r2XacjCZoPlb1nnyB6rsWnAKepnRk3WnpmIcmFzyklGLuezefXw4+s77FSue6PdTFPnh rj9rh/2cM/qi7yPTGxeYr6+cEXzYTZsj5PpknWNDg2tVb2I9IszKcQaatkgjLC4mrMDj v/e2ATV2cQV1/Q8OJ+gdXHcJ7b/gNG5dsCKoCJUaAgUd6rf1FIFHE03q5cC4kZslKTBI OdCzLRpJdDhwGFjtmJSxmkYyI1fPUkG7PSjtYxqLA/eDP8heNabVZ+oTQLjCfFg52vvw Q+8Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l4IPgLdp; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b9ac2ab5a1si2940719785a.79.2024.12.31.11.08.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Dec 2024 11:08:01 -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=l4IPgLdp; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tShZn-0004Nc-Cj; Tue, 31 Dec 2024 14:06: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 1tShZl-0004Jo-Gs for qemu-devel@nongnu.org; Tue, 31 Dec 2024 14:06:45 -0500 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 1tShZj-00084f-Ox for qemu-devel@nongnu.org; Tue, 31 Dec 2024 14:06:44 -0500 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-436341f575fso106631785e9.1 for ; Tue, 31 Dec 2024 11:06:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735672002; x=1736276802; 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=c0vE3lYtWkiDZCwAWAKMF4/xKoT2gUVX19Q6TmVZnmQ=; b=l4IPgLdp+q7o8Y2luIwvninXPVSBfAHETdPVyQAVEW9G2PfYxSEi/79IYVgmfu7423 oZwcrTVq/d+kn+LPnD6l399gnyiVTj33Mau3vuQbWqPLjEsaA3OY+1SnTo2UmIQOdg1W nDfxyq2hgJKTf8UdDo97gA1G68vWgf8DR23KVLIk6cxYDBoaDnmZmUrykM5jOXhXRvMp QHONqrKYL9OOGATCi62jdt7skFwRSaxi1eeW4e5z8WvNgbPc2CaBpYot6PrU3pIi/MgR I9DOFUFRVczzDsT38BuoVvIO+/T7RGlLz7IYRmTNKlh07DpueyxyjWp7w2u04ov2lEa5 +5lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735672002; x=1736276802; 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=c0vE3lYtWkiDZCwAWAKMF4/xKoT2gUVX19Q6TmVZnmQ=; b=BpG9qjiAbFiMR83aYYyo2dqEps/Pzip8eDrSeuKFR2J7stddwqtWR19oc0BGEXQYmP aQ/GXPbg0HUSNozvfd4GOVqw14SPxrxWC8q/w4RHrj061Ng/P8xhes1ixzXpqhaEoU7D Z2YE3NdQLZ/OuVd3giGRC7Jo8Zo4KATmaXt+i7fOobZ2tD6q6DKO1pJDIp7Pj9NDZr9S CUBtAKJ+wW72piESWT5G7H49TosHJWY70C3IdUU37y/Mk48LClFJMda0vUQSqZLK1Z8i RxTBbyRUTNFoqmWhioju/8lTKyPjv6wGp+v8tHakNyz5v+8ulPZIlKEJDiUqiSCH9IH5 RpNQ== X-Gm-Message-State: AOJu0YxkvEeT2T9YaFyerx4BT5yo7O3ermw0xY3AjkB7NA6Wyikjxe78 yqZwglK4kFpaj2KhKvfSnC9ifGX5Fw8ZhLVtDJ+JMnAeWYpu7NTBzh57e0bT/xz1QpAXe5+2ww8 W3/4= X-Gm-Gg: ASbGnctWnoL7Lz/kpkJU4J9wyqb6BjBAp1ZbfKNDWvz5NcsQcr64RBN5n2KIpQeEnie JUAU0O2gHRn2tiy0iuxYW3/0FAxiPpxqyVUJS8XDyvFTnEpn0b8LILtNcMpp6h0uLRJWji4y5OS LrpxdfK9zbJ48MgcXvHeE2D7pGYNYXWNzxY/FAZJTMUxxfMcGNeXeyvjKrbSlgt73yd4HvhZQhR TOJALYkhgU5IcUE7uUcsNodq6AweWvXd5LbnV4mqWMOftvl4/zbrYrGFsS7Q9CuCUELQyQNFZau +dv/LqEZ0UYssNynpgcpHxPO0sNUhr0= X-Received: by 2002:a05:600c:1550:b0:431:4f29:9539 with SMTP id 5b1f17b1804b1-43668b5f892mr299410015e9.32.1735672001843; Tue, 31 Dec 2024 11:06:41 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4366127c515sm398879245e9.30.2024.12.31.11.06.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 31 Dec 2024 11:06:41 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Helge Deller , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v4 4/6] target/hppa: Only set PSW 'M' bit on reset Date: Tue, 31 Dec 2024 20:06:18 +0100 Message-ID: <20241231190620.24442-5-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241231190620.24442-1-philmd@linaro.org> References: <20241231190620.24442-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=philmd@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 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 On reset: "All PSW bits except the M bit is reset. The M bit is set." Commit 1a19da0da44 ("target/hppa: Fill in hppa_cpu_do_interrupt / hppa_cpu_exec_interrupt") inadvertently set the W bit at RESET, remove it and set the M bit. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Helge Deller --- target/hppa/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c index 41538d39d62..dbd46842841 100644 --- a/target/hppa/cpu.c +++ b/target/hppa/cpu.c @@ -209,7 +209,7 @@ static void hppa_cpu_reset_hold(Object *obj, ResetType type) memset(env, 0, offsetof(CPUHPPAState, end_reset_fields)); cpu_hppa_loaded_fr0(env); - cpu_hppa_put_psw(env, PSW_W); + cpu_hppa_put_psw(env, PSW_M); } static ObjectClass *hppa_cpu_class_by_name(const char *cpu_model)