From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NA57j-0007bz-SD for qemu-devel@nongnu.org; Mon, 16 Nov 2009 12:12:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NA57e-0007ZE-NM for qemu-devel@nongnu.org; Mon, 16 Nov 2009 12:12:19 -0500 Received: from [199.232.76.173] (port=36101 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA57e-0007Z5-8y for qemu-devel@nongnu.org; Mon, 16 Nov 2009 12:12:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49871) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NA57d-0005Zo-UU for qemu-devel@nongnu.org; Mon, 16 Nov 2009 12:12:14 -0500 From: Glauber Costa Date: Mon, 16 Nov 2009 15:12:01 -0200 Message-Id: <1258391527-18840-4-git-send-email-glommer@redhat.com> In-Reply-To: <1258391527-18840-3-git-send-email-glommer@redhat.com> References: <1258391527-18840-1-git-send-email-glommer@redhat.com> <1258391527-18840-2-git-send-email-glommer@redhat.com> <1258391527-18840-3-git-send-email-glommer@redhat.com> Subject: [Qemu-devel] [PATCH v2 3/9] 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 87e7dc0..482bb1e 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 a3ad931..4c9b4c3 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -47,6 +47,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); -- 1.6.2.5