From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsNZD-0008Va-1G for qemu-devel@nongnu.org; Mon, 28 Sep 2009 17:15:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsNZ8-0008Tu-GO for qemu-devel@nongnu.org; Mon, 28 Sep 2009 17:15:30 -0400 Received: from [199.232.76.173] (port=49504 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsNZ8-0008Tp-9d for qemu-devel@nongnu.org; Mon, 28 Sep 2009 17:15:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1109) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsNZ7-0001x7-TL for qemu-devel@nongnu.org; Mon, 28 Sep 2009 17:15:26 -0400 From: Glauber Costa Date: Mon, 28 Sep 2009 18:15:14 -0300 Message-Id: <1254172517-28216-4-git-send-email-glommer@redhat.com> In-Reply-To: <1254172517-28216-3-git-send-email-glommer@redhat.com> References: <1254172517-28216-1-git-send-email-glommer@redhat.com> <1254172517-28216-2-git-send-email-glommer@redhat.com> <1254172517-28216-3-git-send-email-glommer@redhat.com> Subject: [Qemu-devel] [PATCH 3/6] provide apic_set_irq_delivered List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com i8259 chip will use it, so provide it, and export it through pc.h Signed-off-by: Glauber Costa --- hw/apic.c | 5 +++++ hw/pc.h | 1 + 2 files changed, 6 insertions(+), 0 deletions(-) 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 */ -- 1.6.2.5