hw/pxb: add map_irq func
commit0639b00d055b313930c23c4d6c9ebfb4af61c00c
authorMarcel Apfelbaum <marcel@redhat.com>
Tue, 2 Jun 2015 11:23:08 +0000 (2 14:23 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 3 Jun 2015 16:19:18 +0000 (3 18:19 +0200)
tree3134e8a3f7199fb8231c90cfb6e6bc72281bb057
parent2118196bb3795a43bf708c37bdcf4b3c33778ccb
hw/pxb: add map_irq func

The bios does not index the pxb slot number when
it computes the IRQ because it resides on bus 0
and not on the current bus.
However Qemu routes the irq through bus 0 and adds
the pxb slot to the IRQ computation of the PXB device.

Synchronize between bios and Qemu by canceling
pxb's effect.

Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
hw/pci-bridge/pci_expander_bridge.c