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>
46 lines
1.4 KiB
C
46 lines
1.4 KiB
C
/*
|
|
* QEMU monitor for m68k
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or
|
|
* later. See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "cpu.h"
|
|
#include "monitor/hmp.h"
|
|
#include "monitor/hmp-target.h"
|
|
#include "monitor/monitor.h"
|
|
|
|
void hmp_info_tlb(Monitor *mon, const QDict *qdict)
|
|
{
|
|
CPUArchState *env1 = mon_get_cpu_env(mon);
|
|
|
|
if (!env1) {
|
|
monitor_printf(mon, "No CPU available\n");
|
|
return;
|
|
}
|
|
|
|
dump_mmu(env1);
|
|
}
|
|
|
|
static const MonitorDef monitor_defs[] = {
|
|
{ "ssp", offsetof(CPUM68KState, sp[0]), NULL, MD_I32 },
|
|
{ "usp", offsetof(CPUM68KState, sp[1]), NULL, MD_I32 },
|
|
{ "isp", offsetof(CPUM68KState, sp[2]), NULL, MD_I32 },
|
|
{ "sfc", offsetof(CPUM68KState, sfc), NULL, MD_I32 },
|
|
{ "dfc", offsetof(CPUM68KState, dfc), NULL, MD_I32 },
|
|
{ "urp", offsetof(CPUM68KState, mmu.urp), NULL, MD_I32 },
|
|
{ "srp", offsetof(CPUM68KState, mmu.srp), NULL, MD_I32 },
|
|
{ "dttr0", offsetof(CPUM68KState, mmu.ttr[M68K_DTTR0]), NULL, MD_I32 },
|
|
{ "dttr1", offsetof(CPUM68KState, mmu.ttr[M68K_DTTR1]), NULL, MD_I32 },
|
|
{ "ittr0", offsetof(CPUM68KState, mmu.ttr[M68K_ITTR0]), NULL, MD_I32 },
|
|
{ "ittr1", offsetof(CPUM68KState, mmu.ttr[M68K_ITTR1]), NULL, MD_I32 },
|
|
{ "mmusr", offsetof(CPUM68KState, mmu.mmusr), NULL, MD_I32 },
|
|
{ NULL },
|
|
};
|
|
|
|
const MonitorDef *target_monitor_defs(void)
|
|
{
|
|
return monitor_defs;
|
|
}
|