summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMark Cave-Ayland2022-03-05 16:09:52 +0100
committerMark Cave-Ayland2022-03-09 10:28:28 +0100
commit6c7266987297cf12e1474c2d634575194096e3c8 (patch)
tree199078891b57a4c56ac4a7a5d5990833875a9868 /include
parentmos6522: use device_class_set_parent_reset() to propagate reset to parent (diff)
downloadqemu-6c7266987297cf12e1474c2d634575194096e3c8.tar.gz
qemu-6c7266987297cf12e1474c2d634575194096e3c8.tar.xz
qemu-6c7266987297cf12e1474c2d634575194096e3c8.zip
mos6522: add register names to register read/write trace events
This helps to follow how the guest is programming the mos6522 when debugging. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220305150957.5053-8-mark.cave-ayland@ilande.co.uk> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/hw/misc/mos6522.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/misc/mos6522.h b/include/hw/misc/mos6522.h
index f0a614898e..bbaec4ede2 100644
--- a/include/hw/misc/mos6522.h
+++ b/include/hw/misc/mos6522.h
@@ -32,6 +32,8 @@
#include "hw/input/adb.h"
#include "qom/object.h"
+#define MOS6522_NUM_REGS 16
+
/* Bits in ACR */
#define SR_CTRL 0x1c /* Shift register control bits */
#define SR_EXT 0x0c /* Shift on external clock */