pci: teach pci_default_config_write() ROM bar for normal/bridge device .
commitedb000350d265b2eddb297453ddf9d504fb85fd0
authorIsaku Yamahata <yamahata@valinux.co.jp>
Fri, 30 Oct 2009 12:21:21 +0000 (30 21:21 +0900)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 9 Nov 2009 14:43:10 +0000 (9 08:43 -0600)
treeabce18d2414be6481c90ceeb682b9dc670e6e0f6
parent260c0cd3d985e51b15870ff47e17b7b930efbda1
pci: teach pci_default_config_write() ROM bar for normal/bridge device .

When updated ROM expantion address of header type 0, it missed
to update mappings.
Add PCI_ROM_ADDRESS check whether to call pci_update_mappings()
Also update pci mapping when PCI_ROM_ADDRESS1 is written for header type 1.

pci_update_mapping() path isn't performance critical,
so call it even independent of header type.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci.c