]> git.ipfire.org Git - thirdparty/qemu.git/commit
pci: prepare irq code for interrupt state
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 25 Nov 2009 13:20:51 +0000 (15:20 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 7 Dec 2009 22:36:48 +0000 (16:36 -0600)
commiteea4acfa5c1ef26439a718375475fe468b7f2fba
tree7166501981a7c1adaac0cee5e8561c1aabcd01a0
parentc99d32efe6970493c44fe410ee4a4aafc1a35428
pci: prepare irq code for interrupt state

This rearranges code in preparation for interrupt state
implementation.
Changes:
- split up bus walk away from interrupt handling
          into a subroutine
- change irq_state from an array to bitmask
- verify that irq_state values are 0 or 1 on load

There are no functional changes.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Isaku Yamahata <yamahata@valinux.co.jp>
(cherry picked from commit d036bb215e0ac1d1fd467239f1d3b7d904cac90a)
hw/pci.c
hw/pci.h