Message ID | 1257531990-19437-4-git-send-email-glommer@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/apic.c b/hw/apic.c index c89008e..a445c7f 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -388,6 +388,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 3e0c8ec..478f70c 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -46,6 +46,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); qemu_irq *kvm_ioapic_init(void);
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(-)