qemu-e2k/hw/isa
Philippe Mathieu-Daudé 28b18db754 hw/isa/isa-superio: Fix IDE controller realization
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
    (no such thing currently exists; the bug is latent)

Fixes: e508430619 ("hw/isa/superio: Make the components QOM children")
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200721124516.9602-1-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2020-09-01 09:02:37 +02:00
..
apm.c hw/isa/apm: Convert debug printf()s to trace events 2020-06-09 19:05:20 +02:00
i82378.c audio: rework pcspk_init() 2020-07-06 17:01:11 +02:00
isa-bus.c sysbus: Convert to sysbus_realize() etc. with Coccinelle 2020-06-15 22:05:28 +02:00
isa-superio.c hw/isa/isa-superio: Fix IDE controller realization 2020-09-01 09:02:37 +02:00
Kconfig
lpc_ich9.c Drop more @errp parameters after previous commit 2020-05-15 07:08:14 +02:00
meson.build meson: convert hw/isa 2020-08-21 06:30:29 -04:00
pc87312.c
piix3.c piix: Move QOM macros to header 2020-08-27 14:04:55 -04:00
piix4.c error: Eliminate error_propagate() with Coccinelle, part 1 2020-07-10 15:18:08 +02:00
smc37c669-superio.c hw/isa/superio: Correct the license text 2020-04-01 19:00:16 +02:00
trace-events hw/isa/apm: Convert debug printf()s to trace events 2020-06-09 19:05:20 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
vt82c686.c pci: Convert uses of pci_create() etc. with Coccinelle 2020-06-15 22:05:28 +02:00