]> Git Repo - qemu.git/commit
hw/*/realview: Fix introspection problem with 'realview_mpcore' & 'realview_gic'
authorThomas Huth <[email protected]>
Mon, 16 Jul 2018 12:59:30 +0000 (14:59 +0200)
committerPeter Maydell <[email protected]>
Tue, 17 Jul 2018 12:12:49 +0000 (13:12 +0100)
commit32db1b58caa72f2ae582560f1937b21ea9ee0646
tree08866d04d4bf84a4c0a2016b4e1bfdfcb0fa8551
parentb2bc349822fa27c7da4e04535c5dda2cb035965b
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 <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Reviewed-by: Eduardo Habkost <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
Message-id: 1531745974[email protected]
Signed-off-by: Peter Maydell <[email protected]>
hw/cpu/realview_mpcore.c
hw/intc/realview_gic.c
This page took 0.026026 seconds and 4 git commands to generate.