diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-07-21 14:45:16 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2020-09-01 09:02:37 +0200 |
commit | 28b18db754da45d978b0a65f9aa4afbc82edb925 (patch) | |
tree | 6c2cc5ef8168ca958ff3671daba14cb6f736782c /hw/isa/pc87312.c | |
parent | b22c2a68c7d5a57175f13c5920a20e8297955e9b (diff) | |
download | qemu-28b18db754da45d978b0a65f9aa4afbc82edb925.zip qemu-28b18db754da45d978b0a65f9aa4afbc82edb925.tar.gz qemu-28b18db754da45d978b0a65f9aa4afbc82edb925.tar.bz2 |
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>
Diffstat (limited to 'hw/isa/pc87312.c')
0 files changed, 0 insertions, 0 deletions