qemu/hw/core
Igor Mammedov a7ddba527c qdev: Set device's parent before calling realize() down inheritance chain
Currently device_set_realized() sets parent only after device was realized,
but qdev_device_add() sets it before device is realized.
Make behavior consistent and alter device_set_realized() to behave like
qdev_device_add().

It will allow to set link<> properties in realize() method in classes
inherited from DEVICE.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-04-16 01:19:46 +02:00
..
empty_slot.c
irq.c
loader.c hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
Makefile.objs
null-machine.c
ptimer.c
qdev-addr.c
qdev-properties-system.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
qdev-properties.c qdev: Add qdev property for bool type 2013-04-16 01:19:46 +02:00
qdev.c qdev: Set device's parent before calling realize() down inheritance chain 2013-04-16 01:19:46 +02:00
stream.c
sysbus.c
uboot_image.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00