summaryrefslogtreecommitdiffstats
path: root/hw/alpha_typhoon.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-08-20 19:08:09 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2012-08-22 10:47:17 -0500
commit67c332fd12326a6ef572f07b9d71370ada6a287f (patch)
tree7080117aafe4c4728d86c251a602615f8bc17b43 /hw/alpha_typhoon.c
parent8558d942b665a9ff0847851615e107308f6386a5 (diff)
downloadhqemu-67c332fd12326a6ef572f07b9d71370ada6a287f.zip
hqemu-67c332fd12326a6ef572f07b9d71370ada6a287f.tar.gz
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/alpha_typhoon.c')
-rw-r--r--hw/alpha_typhoon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/alpha_typhoon.c b/hw/alpha_typhoon.c
index 7667412..b7cf4e2 100644
--- a/hw/alpha_typhoon.c
+++ b/hw/alpha_typhoon.c
@@ -46,7 +46,7 @@ typedef struct TyphoonPchip {
OBJECT_CHECK(TyphoonState, (obj), TYPE_TYPHOON_PCI_HOST_BRIDGE)
typedef struct TyphoonState {
- PCIHostState host;
+ PCIHostState parent_obj;
TyphoonCchip cchip;
TyphoonPchip pchip;
OpenPOWER on IntegriCloud