diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-09-29 21:55:52 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-09-29 21:55:52 +0000 |
commit | 0ecf89aae327d545af6e10defd2315c97874cbd5 (patch) | |
tree | 744671f1f2463b51b3f11d7a495449af815e4a1e /hw/i8259.c | |
parent | 28d34b82467c36c60395dbfc0e118537bc6b6963 (diff) | |
download | qemu-0ecf89aae327d545af6e10defd2315c97874cbd5.zip qemu-0ecf89aae327d545af6e10defd2315c97874cbd5.tar.gz qemu-0ecf89aae327d545af6e10defd2315c97874cbd5.tar.bz2 |
level triggered IRQ fix (Steve Wormley)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1078 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/i8259.c')
-rw-r--r-- | hw/i8259.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -188,7 +188,9 @@ static inline void pic_intack(PicState *s, int irq) } else { s->isr |= (1 << irq); } - s->irr &= ~(1 << irq); + /* We don't clear a level sensitive interrupt here */ + if (!(s->elcr & (1 << irq))) + s->irr &= ~(1 << irq); } int cpu_get_pic_interrupt(CPUState *env) |