On 2012-01-26 20:00, Anthony Liguori wrote: > @@ -548,6 +550,13 @@ static int piix3_realize(PCIDevice *dev) > /* Setup the RTC IRQ */ > s->rtc.irq = rtc_irq; > > + /* Realize the PIT */ > + qdev_set_parent_bus(DEVICE(&s->pit), BUS(s->bus)); > + qdev_init_nofail(DEVICE(&s->pit)); > + > + /* FIXME this should be refactored */ > + pcspk_init(ISA_DEVICE(&s->pit));
Fixing ATM, ie. converting to qdev/QOM. Q: How do I use qdev_property_add_link & Co. to establish the relation from the speaker port device to the PIT? Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux