On 7/20/20 10:23 AM, Philippe Mathieu-Daudé wrote: > When realizing a Super I/O with IDE controller [*], we get: > > qom/object.c:1684: object_property_try_add_child: Assertion > `!child->parent' failed. > Aborted (core dumped) > > This is because the device is already realized when we try to > add the QOM property to the parent. Fix by realizing *after* > adding the QOM relationship. > > [*] Set ISASuperIOClass::ide.count = N with N not zero > > Fixes: e508430619 ("hw/isa/superio: Make the components QOM children") > Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> > --- > hw/isa/isa-superio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~