diff options
author | Andreas Färber | 2012-08-20 19:08:09 +0200 |
---|---|---|
committer | Anthony Liguori | 2012-08-22 17:47:17 +0200 |
commit | 67c332fd12326a6ef572f07b9d71370ada6a287f (patch) | |
tree | 7080117aafe4c4728d86c251a602615f8bc17b43 /hw/grackle_pci.c | |
parent | pci: Derive PCI host bridges from TYPE_PCI_HOST_BRIDGE (diff) | |
download | qemu-67c332fd12326a6ef572f07b9d71370ada6a287f.tar.gz qemu-67c332fd12326a6ef572f07b9d71370ada6a287f.tar.xz qemu-67c332fd12326a6ef572f07b9d71370ada6a287f.zip |
pci: Tidy up PCI host bridges
Adopt the QOM parent field name and enforce QOM-style access via casts.
Don't just typedef PCIHostState, either use it directly or embed it.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/grackle_pci.c')
-rw-r--r-- | hw/grackle_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/grackle_pci.c b/hw/grackle_pci.c index 066f6e1900..67da307284 100644 --- a/hw/grackle_pci.c +++ b/hw/grackle_pci.c @@ -41,7 +41,7 @@ OBJECT_CHECK(GrackleState, (obj), TYPE_GRACKLE_PCI_HOST_BRIDGE) typedef struct GrackleState { - PCIHostState host_state; + PCIHostState parent_obj; MemoryRegion pci_mmio; MemoryRegion pci_hole; |