xref: /openbmc/qemu/target/m68k/monitor.c (revision c05c73b0)
1 /*
2  * QEMU monitor for m68k
3  *
4  * This work is licensed under the terms of the GNU GPL, version 2 or
5  * later.  See the COPYING file in the top-level directory.
6  */
7 
8 #include "qemu/osdep.h"
9 #include "cpu.h"
10 #include "monitor/hmp-target.h"
11 
12 static const MonitorDef monitor_defs[] = {
13     { "d0", offsetof(CPUM68KState, dregs[0]) },
14     { "d1", offsetof(CPUM68KState, dregs[1]) },
15     { "d2", offsetof(CPUM68KState, dregs[2]) },
16     { "d3", offsetof(CPUM68KState, dregs[3]) },
17     { "d4", offsetof(CPUM68KState, dregs[4]) },
18     { "d5", offsetof(CPUM68KState, dregs[5]) },
19     { "d6", offsetof(CPUM68KState, dregs[6]) },
20     { "d7", offsetof(CPUM68KState, dregs[7]) },
21     { "a0", offsetof(CPUM68KState, aregs[0]) },
22     { "a1", offsetof(CPUM68KState, aregs[1]) },
23     { "a2", offsetof(CPUM68KState, aregs[2]) },
24     { "a3", offsetof(CPUM68KState, aregs[3]) },
25     { "a4", offsetof(CPUM68KState, aregs[4]) },
26     { "a5", offsetof(CPUM68KState, aregs[5]) },
27     { "a6", offsetof(CPUM68KState, aregs[6]) },
28     { "a7", offsetof(CPUM68KState, aregs[7]) },
29     { "pc", offsetof(CPUM68KState, pc) },
30     { "sr", offsetof(CPUM68KState, sr) },
31     { "ssp", offsetof(CPUM68KState, sp[0]) },
32     { "usp", offsetof(CPUM68KState, sp[1]) },
33     { "isp", offsetof(CPUM68KState, sp[2]) },
34     { "urp", offsetof(CPUM68KState, mmu.urp) },
35     { "srp", offsetof(CPUM68KState, mmu.srp) },
36     { "dttr0", offsetof(CPUM68KState, mmu.ttr[M68K_DTTR0]) },
37     { "dttr1", offsetof(CPUM68KState, mmu.ttr[M68K_DTTR1]) },
38     { "ittr0", offsetof(CPUM68KState, mmu.ttr[M68K_ITTR0]) },
39     { "ittr1", offsetof(CPUM68KState, mmu.ttr[M68K_ITTR1]) },
40     { NULL },
41 };
42 
43 const MonitorDef *target_monitor_defs(void)
44 {
45     return monitor_defs;
46 }
47