From nobody Mon Feb 9 14:33:07 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1738243861; cv=none; d=zohomail.com; s=zohoarc; b=V1HbXdNTusUxdOPPRtpTD84O7gT1yOgMJWzPT7VyYYN9uT1lN/GXy/N1Szn79bCqYjEEB31cTbR6i9Kw6yvhn9/d+p6ST2E/F88t7dlJXTLYDlCsVTlhv2CLCG5QDJuuVZUS7sZk04YXIciS6qb8qJMr9BqV7gEW4gjKzDTc07w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1738243861; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=6kXHa3Y/89xhE12GuFBsR5Sap+FynUxUzXFyczKb5cE=; b=Y3kqT3Tem9TRSHxe2wgCXjfZcw+4+awNadZVMQTpQvVc8L4fGupLcd5bwDBKi1DvVImJVoteMWPcXtrZhYTDHGCfSHxX/WWzaIkmOXOoV5+bOp2HietrP4EtzwdS9nB9Co/jKIudJFCfF3E7cRf9SKDtFHKQTVjprQiWBdhgWj8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1738243861749702.4369003321085; Thu, 30 Jan 2025 05:31:01 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tdUbp-0004iC-Dl; Thu, 30 Jan 2025 08:29:29 -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 1tdUbn-0004fW-A2 for qemu-devel@nongnu.org; Thu, 30 Jan 2025 08:29:27 -0500 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tdUbl-0001PK-T6 for qemu-devel@nongnu.org; Thu, 30 Jan 2025 08:29:27 -0500 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id EF3C15C03D9; Thu, 30 Jan 2025 13:28:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8604DC4CED2; Thu, 30 Jan 2025 13:29:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738243764; bh=wtPYEkp/rYjrO4/L11LpwqkfMFGmuvFU+26iDChJ36Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QYH0APFYck0qvyHcFAYeGgGfkqI9Sdt8f7CuWaBnwPrCH36hyMoTPG5TfCMBt3vXU c1L6objD8F2RbKKVORzN8JRtcRxwXOV1ELD2dxuTvdWfyxgSZ054Ja5LdHotz42JpV yjyi8IJjgK/2U4VeCDwd8Y4l+hpltUxXLtbEHPgTnClZi3eE4HOMkGcBvncOZ8a90N mPKoAId5sbegsrEfrdyiORCCSCuv5lDy8ee3TmisHE3jR24/2PWCHRJkHwjzyxSJXT lTHY4bzgGenMWVrUdgnz3QvWShuxKvybDwI9RVOLNbX9Zw07NmCbYunXqIq+i5KMYX h2dRgwo0/t7UA== From: deller@kernel.org To: qemu-devel@nongnu.org, Stefan Hajnoczi , Richard Henderson , Peter Maydell Cc: deller@gmx.de Subject: [PULL 4/9] target/hppa: Add CPU diagnose registers Date: Thu, 30 Jan 2025 14:29:09 +0100 Message-ID: <20250130132915.16846-5-deller@kernel.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20250130132915.16846-1-deller@kernel.org> References: <20250130132915.16846-1-deller@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2604:1380:4641:c500::1; envelope-from=deller@kernel.org; helo=dfw.source.kernel.org X-Spam_score_int: -56 X-Spam_score: -5.7 X-Spam_bar: ----- X-Spam_report: (-5.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.3, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1738243862647019000 Content-Type: text/plain; charset="utf-8" From: Helge Deller Add the diagnose registers (%dr) to the CPUArchState. Those are mostly undocumented and control cache behaviour, memory behaviour, reset button management and many other related internal CPU things. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson --- target/hppa/cpu.h | 1 + target/hppa/machine.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target/hppa/cpu.h b/target/hppa/cpu.h index beea42d105..b858986c41 100644 --- a/target/hppa/cpu.h +++ b/target/hppa/cpu.h @@ -232,6 +232,7 @@ typedef struct CPUArchState { target_ulong cr[32]; /* control registers */ target_ulong cr_back[2]; /* back of cr17/cr18 */ target_ulong shadow[7]; /* shadow registers */ + target_ulong dr[32]; /* diagnose registers */ =20 /* * During unwind of a memory insn, the base register of the address. diff --git a/target/hppa/machine.c b/target/hppa/machine.c index 211bfcf640..bb47a2e689 100644 --- a/target/hppa/machine.c +++ b/target/hppa/machine.c @@ -198,6 +198,7 @@ static const VMStateField vmstate_env_fields[] =3D { VMSTATE_UINT64(iasq_b, CPUHPPAState), =20 VMSTATE_UINT32(fr0_shadow, CPUHPPAState), + VMSTATE_UINT64_ARRAY(dr, CPUHPPAState, 32), VMSTATE_END_OF_LIST() }; =20 @@ -208,8 +209,8 @@ static const VMStateDescription * const vmstate_env_sub= sections[] =3D { =20 static const VMStateDescription vmstate_env =3D { .name =3D "env", - .version_id =3D 3, - .minimum_version_id =3D 3, + .version_id =3D 4, + .minimum_version_id =3D 4, .fields =3D vmstate_env_fields, .subsections =3D vmstate_env_subsections, }; --=20 2.47.0