diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-12 14:29:38 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-15 09:20:49 -0600 |
commit | d0c5be58704640850fad02c0ff38135f2e9aa589 (patch) | |
tree | 6b77a63d82cc9e56b4d0160334eeea3dca444818 /hw/piix_pci.c | |
parent | 8eb02831af6c5534d8712cb8db1104852cac26e9 (diff) |
rtc: make piix3 set the rtc as a child (v2)
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/piix_pci.c')
-rw-r--r-- | hw/piix_pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/piix_pci.c b/hw/piix_pci.c index d183443b2f..d785d4ba07 100644 --- a/hw/piix_pci.c +++ b/hw/piix_pci.c @@ -288,6 +288,7 @@ static PCIBus *i440fx_common_init(const char *device_name, address_space_io, 0); s->bus = b; qdev_init_nofail(dev); + qdev_property_add_child(qdev_get_root(), "i440fx", dev, NULL); d = pci_create_simple(b, 0, device_name); *pi440fx_state = DO_UPCAST(PCII440FXState, dev, d); @@ -323,6 +324,8 @@ static PCIBus *i440fx_common_init(const char *device_name, pci_create_simple_multifunction(b, -1, true, "PIIX3")); pci_bus_irqs(b, piix3_set_irq, pci_slot_get_pirq, piix3, PIIX_NUM_PIRQS); + + qdev_property_add_child(dev, "piix3", &piix3->dev.qdev, NULL); } piix3->pic = pic; |