qemu-e2k/hw/misc
Thomas Huth 1069a3c6e1 hw/misc/macio: Fix device introspection problems in macio devices
Valgrind reports an error when introspecting the macio devices, e.g.:

echo "{'execute':'qmp_capabilities'} {'execute':'device-list-properties'," \
 "'arguments':{'typename':'macio-newworld'}}" \
 "{'execute': 'human-monitor-command', " \
 "'arguments': {'command-line': 'info qtree'}}" | \
 valgrind -q ppc64-softmmu/qemu-system-ppc64 -M none,accel=qtest -qmp stdio
[...]
==30768== Invalid read of size 8
==30768==    at 0x5BC1EA: qdev_print (qdev-monitor.c:686)
==30768==    by 0x5BC1EA: qbus_print (qdev-monitor.c:719)
==30768==    by 0x43E458: handle_hmp_command (monitor.c:3446)
[...]

Use the new function sysbus_init_child_obj() to initialize the objects
here, to get the reference counting of the objects right, so that they
are cleaned up correctly when the parent gets removed.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2018-08-01 09:48:40 +10:00
..
macio hw/misc/macio: Fix device introspection problems in macio devices 2018-08-01 09:48:40 +10:00
Makefile.objs hw/misc/tz-mpc.c: Implement the Arm TrustZone Memory Protection Controller 2018-06-22 13:28:39 +01:00
a9scu.c
applesmc.c
arm11scu.c
arm_integrator_debug.c hw: Do not include "exec/address-spaces.h" if it is not necessary 2018-06-01 14:15:10 +02:00
arm_l2x0.c
arm_sysctl.c
aspeed_scu.c aspeed: Implement write-1-{set, clear} for AST2500 strapping 2018-07-16 17:18:41 +01:00
aspeed_sdmc.c
auxbus.c hw/display/xlnx_dp: Move problematic code from instance_init to realize 2018-07-17 13:12:49 +01:00
bcm2835_mbox.c
bcm2835_property.c
bcm2835_rng.c
cbus.c
debugexit.c
eccmemctl.c
edu.c hw/misc: Use the IEC binary prefix definitions 2018-07-02 15:41:13 +02:00
exynos4210_clk.c
exynos4210_pmu.c
exynos4210_rng.c
hyperv_testdev.c hyperv: rename vcpu_id to vp_index 2018-07-16 16:58:16 +02:00
imx2_wdt.c
imx6_ccm.c
imx6_src.c
imx7_ccm.c
imx7_gpr.c
imx7_snvs.c
imx25_ccm.c
imx31_ccm.c
imx_ccm.c
iotkit-secctl.c hw/misc/iotkit-secctl.c: Implement SECMPCINTSTATUS 2018-06-22 13:28:40 +01:00
ivshmem.c hw/ivshmem: Use the IEC binary prefix definitions 2018-07-02 15:41:12 +02:00
max111x.c
milkymist-hpdmc.c
milkymist-pfpu.c
mips_cmgcr.c
mips_cpc.c
mips_itu.c hw/mips: Use the IEC binary prefix definitions 2018-07-02 15:41:16 +02:00
mmio_interface.c
mos6522.c mos6522: expose mos6522_update_irq() through MOS6522DeviceClass 2018-06-16 16:32:33 +10:00
mps2-fpgaio.c
mps2-scc.c
msf2-sysreg.c
mst_fpga.c
omap_clk.c
omap_gpmc.c
omap_l4.c
omap_sdrc.c
omap_tap.c
pc-testdev.c
pca9552.c misc: add pca9552 LED blinker model 2018-06-08 13:15:32 +01:00
pci-testdev.c
puv3_pm.c
pvpanic.c
sga.c hw/misc/sga: Use the correct ISA include 2018-06-01 14:15:10 +02:00
slavio_misc.c
stm32f2xx_syscfg.c
tmp105.c hw/i2c: Use DeviceClass::realize instead of I2CSlaveClass::init 2018-06-01 15:14:31 +02:00
tmp105.h
tmp421.c hw/i2c: Use DeviceClass::realize instead of I2CSlaveClass::init 2018-06-01 15:14:31 +02:00
trace-events hw/misc/tz_mpc.c: Honour the BLK_LUT settings in translate 2018-06-22 13:28:40 +01:00
tz-mpc.c hw/misc/tz-mpc: Zero the LUT on initialization, not just reset 2018-07-30 14:52:15 +01:00
tz-ppc.c
unimp.c
vmcoreinfo.c
zynq-xadc.c
zynq_slcr.c