]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i8259.c
i8259: Fix poll command
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 7 Oct 2011 07:19:47 +0000 (09:19 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 16 Oct 2011 11:11:08 +0000 (11:11 +0000)
commit8d484caa84dbaca5597cfbbf657ebdcd8f06b0c3
tree3485eb9b6a9c85b9fb36d8c4e75f68e00fe3b1f3
parentb76750c1ab50e23ef3ebc8cb6018dda41f174d84
i8259: Fix poll command

This was probably never used so far: According to the spec, polling
means ack'ing the pending IRQ and setting its corresponding bit in isr.
Moreover, we have to signal a pending IRQ via bit 7 of the returned
value, and we must not return a spurious IRQ if none is pending.

This implements the poll command without the help of pic_poll_read which
is left untouched as pic_intack_read is still using it.

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