diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-01-24 16:29:29 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-17 09:58:22 -0600 |
commit | aa24822bdc7c4e74afbc6fa1324b01cf067da7cb (patch) | |
tree | 169e7b7e85693bef2ed3a9cc677830ff148b8e46 /hw/kvm | |
parent | 4aa5d2853a69d95f5e05bd02200dfc6f47cab9de (diff) | |
download | qemu-aa24822bdc7c4e74afbc6fa1324b01cf067da7cb.zip qemu-aa24822bdc7c4e74afbc6fa1324b01cf067da7cb.tar.gz qemu-aa24822bdc7c4e74afbc6fa1324b01cf067da7cb.tar.bz2 |
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>
Diffstat (limited to 'hw/kvm')
-rw-r--r-- | hw/kvm/i8259.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/kvm/i8259.c b/hw/kvm/i8259.c index eb98889..94d1b9a 100644 --- a/hw/kvm/i8259.c +++ b/hw/kvm/i8259.c @@ -84,8 +84,8 @@ static void kvm_pic_reset(DeviceState *dev) { PICCommonState *s = DO_UPCAST(PICCommonState, dev.qdev, dev); - pic_reset_common(s); s->elcr = 0; + pic_reset_common(s); kvm_pic_put(s); } |