summaryrefslogtreecommitdiffstats
path: root/include/hw/misc/mos6522.h
diff options
context:
space:
mode:
authorMark Cave-Ayland2018-06-13 10:30:15 +0200
committerDavid Gibson2018-06-16 08:32:33 +0200
commitb6c7e42f74ab244545e157a0f90a31c70a66f3eb (patch)
treeaf2a3a48adcacca120d4cba2d411d36a64d1ffb3 /include/hw/misc/mos6522.h
parentmos6522: remove additional interrupt flag filter from mos6522_update_irq() (diff)
downloadqemu-b6c7e42f74ab244545e157a0f90a31c70a66f3eb.tar.gz
qemu-b6c7e42f74ab244545e157a0f90a31c70a66f3eb.tar.xz
qemu-b6c7e42f74ab244545e157a0f90a31c70a66f3eb.zip
mos6522: expose mos6522_update_irq() through MOS6522DeviceClass
In the case where we have an interrupt generated externally from inputs to bits 1 and 2 of port A and/or port B, it is necessary to expose mos6522_update_irq() so it can be called by the interrupt source. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/misc/mos6522.h b/include/hw/misc/mos6522.h
index f52b41920b..03d9f0c059 100644
--- a/include/hw/misc/mos6522.h
+++ b/include/hw/misc/mos6522.h
@@ -134,6 +134,7 @@ typedef struct MOS6522DeviceClass {
void (*set_sr_int)(MOS6522State *dev);
void (*portB_write)(MOS6522State *dev);
void (*portA_write)(MOS6522State *dev);
+ void (*update_irq)(MOS6522State *dev);
/* These are used to influence the CUDA MacOS timebase calibration */
uint64_t (*get_timer1_counter_value)(MOS6522State *dev, MOS6522Timer *ti);
uint64_t (*get_timer2_counter_value)(MOS6522State *dev, MOS6522Timer *ti);