aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-10-07 09:19:42 +0200
committerBlue Swirl <blauwirbel@gmail.com>2011-10-16 11:11:04 +0000
commitafdb06f84920c4949da904b045cdd105caf2579c (patch)
tree4b5cf8ca8cb059375724fb6e173ed87299669c08 /hw
parent2e2b22749985f81f33f79c5cab8994ea45bb9a2b (diff)
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 <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/i8259.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/i8259.c b/hw/i8259.c
index 65123bd2dc..cddd3c769e 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;