diff options
author | Mark Cave-Ayland | 2018-06-07 19:17:50 +0200 |
---|---|---|
committer | David Gibson | 2018-06-12 02:44:36 +0200 |
commit | d638fd5c9681dbb8915147365520888c64f39dac (patch) | |
tree | 08421b576eacc0e20b1e839eb72952d1754a7b55 /include/hw/misc/mos6522.h | |
parent | cuda: embed mos6522_cuda device directly rather than using QOM object link (diff) | |
download | qemu-d638fd5c9681dbb8915147365520888c64f39dac.tar.gz qemu-d638fd5c9681dbb8915147365520888c64f39dac.tar.xz qemu-d638fd5c9681dbb8915147365520888c64f39dac.zip |
mos6522: move timer frequency initialisation to mos6522_reset
The 6522 VIA timer frequency cannot be set by altering registers within the
device itself and hence it is a fixed property of the machine.
Move the initialisation of the timer frequency to the mos6522 reset function
and ensure that any subclasses always call the parent reset function so that
it isn't required to store the timer frequency within vmstate_mos6522_timer
itself.
By moving the frequency initialisation to the device reset function then we
find that the realize function for both mos6522 and mos6522_cuda becomes
obsolete and can simply be removed.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/misc/mos6522.h')
-rw-r--r-- | include/hw/misc/mos6522.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/misc/mos6522.h b/include/hw/misc/mos6522.h index cb0fd7db78..f52b41920b 100644 --- a/include/hw/misc/mos6522.h +++ b/include/hw/misc/mos6522.h @@ -130,7 +130,7 @@ typedef struct MOS6522State { typedef struct MOS6522DeviceClass { DeviceClass parent_class; - DeviceRealize parent_realize; + DeviceReset parent_reset; void (*set_sr_int)(MOS6522State *dev); void (*portB_write)(MOS6522State *dev); void (*portA_write)(MOS6522State *dev); |