@samitouri / QOSamiQemu / commits / f7a46c64c8

target/m68k: Remove MonitorDef register entries available via gdbstub

All these registers are already provided by via gdbstub parsed XML and handler by the gdb_get_register() helper in the monitor/hmp.c file. Remove as now unreachable code. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20260219191955.83815-20-philmd@linaro.org>

Philippe Mathieu-Daudé committed Feb 15, 2026 at 13:28 UTC f7a46c64c84e6d4f829c651bf763469117c30683
1 file changed -18
target/m68k/monitor.c
-18
@@ -24,24 +24,6 @@ void hmp_info_tlb(Monitor *mon, const QDict *qdict)
24 }
25
26 static const MonitorDef monitor_defs[] = {
27 - { "d0", offsetof(CPUM68KState, dregs[0]), NULL, MD_I32 },
28 - { "d1", offsetof(CPUM68KState, dregs[1]), NULL, MD_I32 },
29 - { "d2", offsetof(CPUM68KState, dregs[2]), NULL, MD_I32 },
30 - { "d3", offsetof(CPUM68KState, dregs[3]), NULL, MD_I32 },
31 - { "d4", offsetof(CPUM68KState, dregs[4]), NULL, MD_I32 },
32 - { "d5", offsetof(CPUM68KState, dregs[5]), NULL, MD_I32 },
33 - { "d6", offsetof(CPUM68KState, dregs[6]), NULL, MD_I32 },
34 - { "d7", offsetof(CPUM68KState, dregs[7]), NULL, MD_I32 },
35 - { "a0", offsetof(CPUM68KState, aregs[0]), NULL, MD_I32 },
36 - { "a1", offsetof(CPUM68KState, aregs[1]), NULL, MD_I32 },
37 - { "a2", offsetof(CPUM68KState, aregs[2]), NULL, MD_I32 },
38 - { "a3", offsetof(CPUM68KState, aregs[3]), NULL, MD_I32 },
39 - { "a4", offsetof(CPUM68KState, aregs[4]), NULL, MD_I32 },
40 - { "a5", offsetof(CPUM68KState, aregs[5]), NULL, MD_I32 },
41 - { "a6", offsetof(CPUM68KState, aregs[6]), NULL, MD_I32 },
42 - { "a7", offsetof(CPUM68KState, aregs[7]), NULL, MD_I32 },
43 - { "pc", offsetof(CPUM68KState, pc), NULL, MD_I32 },
44 - { "sr", offsetof(CPUM68KState, sr), NULL, MD_I32 },
27 { "ssp", offsetof(CPUM68KState, sp[0]), NULL, MD_I32 },
28 { "usp", offsetof(CPUM68KState, sp[1]), NULL, MD_I32 },
29 { "isp", offsetof(CPUM68KState, sp[2]), NULL, MD_I32 },