]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
target/hppa: Add CPU diagnose registers
authorHelge Deller <deller@gmx.de>
Tue, 28 Jan 2025 18:47:31 +0000 (19:47 +0100)
committerHelge Deller <deller@gmx.de>
Thu, 30 Jan 2025 12:37:20 +0000 (13:37 +0100)
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
target/hppa/machine.c

index beea42d1059a5686014d029adcc495dc07b5f18c..b858986c4181107294a7a236b5b61606bc6530ed 100644 (file)
@@ -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.
index 211bfcf640712faee15f47cf9c2ef60205aa9b9e..bb47a2e689fd69717f0c69094a8aee28b33c1019 100644 (file)
@@ -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,
 };