aboutsummaryrefslogtreecommitdiff
path: root/hmp-commands-info.hx
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-03-05 15:09:53 +0000
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-03-09 09:28:28 +0000
commit409e9f7131e55e74eb09e65535779e311df5ebf5 (patch)
tree731535c51834c64e6bb99ab9264c394cd7d35c5d /hmp-commands-info.hx
parent6c7266987297cf12e1474c2d634575194096e3c8 (diff)
downloadqemu-409e9f7131e55e74eb09e65535779e311df5ebf5.zip
qemu-409e9f7131e55e74eb09e65535779e311df5ebf5.tar.gz
qemu-409e9f7131e55e74eb09e65535779e311df5ebf5.tar.bz2
mos6522: add "info via" HMP command for debugging
This displays detailed information about the device registers and timers to aid debugging problems with timers and interrupts. Currently the QAPI generators for HumanReadableText don't work correctly if used in qapi/target-misc.json when a non-specified target is built, so for now manually add a hmp_info_via() wrapper until direct support for per-device HMP/QMP commands is implemented. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20220305150957.5053-9-mark.cave-ayland@ilande.co.uk> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hmp-commands-info.hx')
-rw-r--r--hmp-commands-info.hx15
1 files changed, 15 insertions, 0 deletions
diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx
index e90f20a..adfa085 100644
--- a/hmp-commands-info.hx
+++ b/hmp-commands-info.hx
@@ -879,3 +879,18 @@ SRST
``info sgx``
Show intel SGX information.
ERST
+
+#if defined(TARGET_M68K) || defined(TARGET_PPC)
+ {
+ .name = "via",
+ .args_type = "",
+ .params = "",
+ .help = "show guest mos6522 VIA devices",
+ .cmd = hmp_info_via,
+ },
+#endif
+
+SRST
+ ``info via``
+ Show guest mos6522 VIA devices.
+ERST