i8259: Clear ELCR on reset
commit86fbf97ceb4a9c46a609dd4ae053ba4262b68fe8
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 7 Oct 2011 07:19:45 +0000 (7 09:19 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 16 Oct 2011 11:11:06 +0000 (16 11:11 +0000)
tree38e936612cf6b73d82c406030aeb567c6464dbd4
parent51d9e939b8120d76feb096aeff04368683784541
i8259: Clear ELCR on reset

The ELCR is actually part of the chipset but we model it here for
simplicity reasons. The PIIX3 clears the ELCR on reset, which was once
broken by 4dbe19e181. Fix this by splitting up pic_init_reset from
pic_reset and clearing the register in the latter.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/i8259.c