Message ID | 1254172517-28216-4-git-send-email-glommer@redhat.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/hw/apic.c b/hw/apic.c index b3f5179..f6b5542 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -392,6 +392,11 @@ void apic_reset_irq_delivered(void) apic_irq_delivered = 0; } +void apic_set_irq_delivered(void) +{ + apic_irq_delivered = 1; +} + int apic_get_irq_delivered(void) { return apic_irq_delivered; diff --git a/hw/pc.h b/hw/pc.h index c9cdd4a..f7c1a88 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -45,6 +45,7 @@ int apic_get_interrupt(CPUState *env); qemu_irq *ioapic_init(void); void ioapic_set_irq(void *opaque, int vector, int level); void apic_reset_irq_delivered(void); +void apic_set_irq_delivered(void); int apic_get_irq_delivered(void); /* i8254.c */
i8259 chip will use it, so provide it, and export it through pc.h Signed-off-by: Glauber Costa <glommer@redhat.com> --- hw/apic.c | 5 +++++ hw/pc.h | 1 + 2 files changed, 6 insertions(+), 0 deletions(-)