@samitouri / QOSamiQemu / commits / 25bb92bdb9

target/sparc/monitor: Dump all registers as 32-bit

All these SPARC64 registers are 32-bit since their introduction in commit 3475187dd81 ("sparc64 merge"), see target/sparc/cpu.h: 511 #if defined(TARGET_SPARC64) ... 515 uint32_t asi; 516 uint32_t pstate; ... 519 uint32_t cansave, canrestore, otherwin, wstate, cleanwin; Set MonitorDef::type to MD_I32 to dump them as 32-bit. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-Id: <20260320091019.59902-2-philmd@linaro.org>

Philippe Mathieu-Daudé committed Mar 20, 2026 at 09:04 UTC 25bb92bdb97943295cd79c5f65dfe0fbbe413914
1 file changed +7 -7
target/sparc/monitor.c
+7 -7
@@ -41,13 +41,13 @@ void hmp_info_tlb(Monitor *mon, const QDict *qdict)
41
42 const MonitorDef monitor_defs[] = {
43 #ifdef TARGET_SPARC64
44 - { "asi", offsetof(CPUSPARCState, asi) },
45 - { "pstate", offsetof(CPUSPARCState, pstate) },
46 - { "cansave", offsetof(CPUSPARCState, cansave) },
47 - { "canrestore", offsetof(CPUSPARCState, canrestore) },
48 - { "otherwin", offsetof(CPUSPARCState, otherwin) },
49 - { "wstate", offsetof(CPUSPARCState, wstate) },
50 - { "cleanwin", offsetof(CPUSPARCState, cleanwin) },
44 + { "asi", offsetof(CPUSPARCState, asi), NULL, MD_I32 },
45 + { "pstate", offsetof(CPUSPARCState, pstate), NULL, MD_I32 },
46 + { "cansave", offsetof(CPUSPARCState, cansave), NULL, MD_I32 },
47 + { "canrestore", offsetof(CPUSPARCState, canrestore), NULL, MD_I32 },
48 + { "otherwin", offsetof(CPUSPARCState, otherwin), NULL, MD_I32 },
49 + { "wstate", offsetof(CPUSPARCState, wstate), NULL, MD_I32 },
50 + { "cleanwin", offsetof(CPUSPARCState, cleanwin), NULL, MD_I32 },
51 #endif
52 { NULL },
53 };