]> git.proxmox.com Git - mirror_qemu.git/commit - hw/intc/i8259_common.c
i8259: Do not clear level-triggered lines in IRR on init
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 24 Jan 2012 15:29:29 +0000 (16:29 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 17 Feb 2012 15:58:22 +0000 (09:58 -0600)
commitaa24822bdc7c4e74afbc6fa1324b01cf067da7cb
tree169e7b7e85693bef2ed3a9cc677830ff148b8e46
parent4aa5d2853a69d95f5e05bd02200dfc6f47cab9de
i8259: Do not clear level-triggered lines in IRR on init

When an input line is handled as level-triggered, it will immediately
raise an IRQ on the output of a PIC again that goes through an init
reset. So only clear the edge-triggered inputs from IRR in that
scenario.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/i8259.c
hw/i8259_common.c
hw/kvm/i8259.c