pci_bridge: factor out common code
commit45eb768c706d3a5fbe55224c589e8b4e252781d9
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 4 Mar 2013 09:23:49 +0000 (4 11:23 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Mar 2013 19:02:17 +0000 (26 21:02 +0200)
treed3de1d700976fe8efae8942b64f66d4626137f2b
parentba7d8515c1e929baccea9f53d06d131fd2b007a1
pci_bridge: factor out common code

Reuse common code in pcie_port, override the hardwired-to-0
bits per PCI Express spec.
No functional change but makes the code easier to follow.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c
hw/pci/pci_bridge.h
hw/pci/pcie_port.c