pci/bridge: fix pci_bridge_reset()
authorIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 20 Oct 2010 08:18:51 +0000 (17:18 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 20 Oct 2010 10:05:10 +0000 (12:05 +0200)
commitf7f5b20ecda64b4562d636ea115561b78b30f1cf
treeead3f1ff630bb7befced3d273b819b68ddedb639
parentb3883990fc5bbd6971eb0e0e256d892170bd6d1b
pci/bridge: fix pci_bridge_reset()

The lower bits of base/limit registers is RO and shouldn't be zero
cleared on reset. This patch fixes it.
In fact, the default value of base/limit registers aren't specified
in the spec. And some bridges disable forwarding on reset instead of
zeroing base/limit registers.
So introduce one function to disable bridge forwarding so that
such bridges can use it. It will be used later.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci_bridge.c
hw/pci_bridge.h