]> git.proxmox.com Git - qemu.git/commit
intc/xilinx_intc: Handle level interrupt retriggering
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Tue, 11 Jun 2013 00:59:09 +0000 (10:59 +1000)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Tue, 18 Jun 2013 07:45:00 +0000 (09:45 +0200)
commit45fdd3bf5a00466cb0f762c638291a5446773dc9
tree8b5dd0a7da6dad03b3ce24fe9659a00d96a0304e
parent6327c221fff955ee979559ec85c148963e06d78f
intc/xilinx_intc: Handle level interrupt retriggering

Acking a level sensitive interrupt should have no effect if the
interrupt pin is still asserted. The current implementation requires
and edge condition to occur for setting a level sensitive IRQ, which
means an ACK can clear a level sensitive interrupt, until the original
source strobes the interrupt again.

Fix by keeping track of the interrupt pin state and setting ISR based
on this every time update_irq() is called.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
hw/intc/xilinx_intc.c