mirror_qemu/hw/cpu
Thomas Huth 32db1b58ca hw/*/realview: Fix introspection problem with 'realview_mpcore' & 'realview_gic'
echo "{'execute':'qmp_capabilities'} {'execute':'device-list-properties'," \
 "'arguments':{'typename':'realview_mpcore'}}" \
 "{'execute': 'human-monitor-command', " \
 "'arguments': {'command-line': 'info qtree'}}" | \
 valgrind -q aarch64-softmmu/qemu-system-aarch64 -M none,accel=qtest -qmp stdio
[...]
==2654== Invalid read of size 8
==2654==    at 0x61878A: qdev_print (qdev-monitor.c:686)
==2654==    by 0x61878A: qbus_print (qdev-monitor.c:719)
==2654==    by 0x452B38: handle_hmp_command (monitor.c:3446)
==2654==    by 0x452D70: qmp_human_monitor_command (monitor.c:821)
[...]

Use sysbus_init_child_obj() to fix it.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-id: 1531745974-17187-14-git-send-email-thuth@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2018-07-17 13:12:49 +01:00
..
Makefile.objs hw/cpu: core.c can be compiled as common object 2017-06-09 12:02:55 +10:00
a9mpcore.c hw/cpu/a9mpcore: Fix introspection problems with the "a9mpcore_priv" device 2018-07-17 13:12:49 +01:00
a15mpcore.c hw/cpu/a15mpcore: Fix introspection problem with the a15mpcore_priv device 2018-07-17 13:12:49 +01:00
arm11mpcore.c hw/cpu/arm11mpcore: Fix introspection problem with 'arm11mpcore_priv' 2018-07-17 13:12:49 +01:00
core.c hw: use "qemu/osdep.h" as first #include in source files 2017-12-18 17:07:02 +03:00
realview_mpcore.c hw/*/realview: Fix introspection problem with 'realview_mpcore' & 'realview_gic' 2018-07-17 13:12:49 +01:00