[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 4/9] target/hppa: Add CPU diagnose registers
From: |
deller |
Subject: |
[PULL v2 4/9] target/hppa: Add CPU diagnose registers |
Date: |
Fri, 31 Jan 2025 10:22:24 +0100 |
From: Helge Deller <deller@gmx.de>
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 <deller@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
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 */
/*
* 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[] = {
VMSTATE_UINT64(iasq_b, CPUHPPAState),
VMSTATE_UINT32(fr0_shadow, CPUHPPAState),
+ VMSTATE_UINT64_ARRAY(dr, CPUHPPAState, 32),
VMSTATE_END_OF_LIST()
};
@@ -208,8 +209,8 @@ static const VMStateDescription * const
vmstate_env_subsections[] = {
static const VMStateDescription vmstate_env = {
.name = "env",
- .version_id = 3,
- .minimum_version_id = 3,
+ .version_id = 4,
+ .minimum_version_id = 4,
.fields = vmstate_env_fields,
.subsections = vmstate_env_subsections,
};
--
2.47.0
- [PULL v2 0/9] Hppa system mfdiag for v10 patches, deller, 2025/01/31
- [PULL v2 1/9] MAINTAINERS: Add myself as HPPA maintainer, deller, 2025/01/31
- [PULL v2 2/9] hppa: Sync contents of hppa_hardware.h header file with SeaBIOS-hppa, deller, 2025/01/31
- [PULL v2 3/9] disas/hppa: implement mfdiag/mtdiag disassembly, deller, 2025/01/31
- [PULL v2 4/9] target/hppa: Add CPU diagnose registers,
deller <=
- [PULL v2 5/9] target/hppa: Drop diag_getshadowregs_pa2 and diag_putshadowregs_pa2, deller, 2025/01/31
- [PULL v2 6/9] target/hppa: Add instruction decoding for mfdiag and mtdiag, deller, 2025/01/31
- [PULL v2 7/9] target/hppa: 64-bit CPUs start with space register hashing enabled, deller, 2025/01/31
- [PULL v2 8/9] target/hppa: Implement space register hashing for 64-bit HP-UX, deller, 2025/01/31
- [PULL v2 9/9] target/hppa: Update SeaBIOS-hppa to version 18, deller, 2025/01/31