From: Jan Kiszka Date: Fri, 7 Oct 2011 07:19:42 +0000 (+0200) Subject: i8259: Do not update IRQ output after spurious pic_poll_read X-Git-Tag: qemu-xen-4.3.0-rc1~2163 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=afdb06f84920c4949da904b045cdd105caf2579c;p=qemu-upstream-4.5-testing.git i8259: Do not update IRQ output after spurious pic_poll_read If pic_poll_read finds no pending IRQ and return a spurious one instead, no PIC state is changed, thus we do not need to call pic_update_irq. Signed-off-by: Jan Kiszka Signed-off-by: Blue Swirl --- diff --git a/hw/i8259.c b/hw/i8259.c index 65123bd2d..cddd3c769 100644 --- a/hw/i8259.c +++ b/hw/i8259.c @@ -393,7 +393,6 @@ static uint32_t pic_poll_read(PicState *s) pic_update_irq(s->pics_state); } else { ret = 0x07; - pic_update_irq(s->pics_state); } return ret;