diff options
author | Alexander Graf <agraf@suse.de> | 2012-12-08 14:27:26 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-12-14 13:12:56 +0100 |
commit | 997505065dc92e533debf5cb23012ba4e673d387 (patch) | |
tree | aa4c4b0872dd43b9c9e73b47c90293567bed3bf7 | |
parent | a911b7a92064d17b862ae85fe8e5ec91b7ba1aa9 (diff) |
PPC: e500: Declare pci bridge as bridge
The new PCI host bridge device needs to identify itself as PCI host bridge.
Declare it as such.
Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r-- | hw/ppce500_pci.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c index 54c72b4fd2..e5343411be 100644 --- a/hw/ppce500_pci.c +++ b/hw/ppce500_pci.c @@ -330,9 +330,15 @@ static int e500_pcihost_bridge_initfn(PCIDevice *d) PPCE500CCSRState *ccsr = CCSR(container_get(qdev_get_machine(), "/e500-ccsr")); + pci_config_set_class(d->config, PCI_CLASS_BRIDGE_PCI); + d->config[PCI_HEADER_TYPE] = + (d->config[PCI_HEADER_TYPE] & PCI_HEADER_TYPE_MULTI_FUNCTION) | + PCI_HEADER_TYPE_BRIDGE; + memory_region_init_alias(&b->bar0, "e500-pci-bar0", &ccsr->ccsr_space, 0, int128_get64(ccsr->ccsr_space.size)); pci_register_bar(d, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, &b->bar0); + return 0; } |