summaryrefslogtreecommitdiffstats
path: root/hw/misc/mos6522.c
diff options
context:
space:
mode:
authorMark Cave-Ayland2022-03-05 16:09:51 +0100
committerMark Cave-Ayland2022-03-09 10:28:28 +0100
commitc697fc80a8e7ee0594afbbf0758fcf889f47d31e (patch)
treeb10281877cb159727ce56379449df4acdf3d96fe /hw/misc/mos6522.c
parentmos6522: remove update_irq() and set_sr_int() methods from MOS6522DeviceClass (diff)
downloadqemu-c697fc80a8e7ee0594afbbf0758fcf889f47d31e.tar.gz
qemu-c697fc80a8e7ee0594afbbf0758fcf889f47d31e.tar.xz
qemu-c697fc80a8e7ee0594afbbf0758fcf889f47d31e.zip
mos6522: use device_class_set_parent_reset() to propagate reset to parent
Switch from using a legacy approach to the more formal approach for propagating device reset to the parent. 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> Message-Id: <20220305150957.5053-7-mark.cave-ayland@ilande.co.uk> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/misc/mos6522.c')
-rw-r--r--hw/misc/mos6522.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/misc/mos6522.c b/hw/misc/mos6522.c
index 4c3147a7d1..093cc83dcf 100644
--- a/hw/misc/mos6522.c
+++ b/hw/misc/mos6522.c
@@ -519,7 +519,6 @@ static void mos6522_class_init(ObjectClass *oc, void *data)
dc->reset = mos6522_reset;
dc->vmsd = &vmstate_mos6522;
device_class_set_props(dc, mos6522_properties);
- mdc->parent_reset = dc->reset;
mdc->portB_write = mos6522_portB_write;
mdc->portA_write = mos6522_portA_write;
mdc->get_timer1_counter_value = mos6522_get_counter_value;