summary refs log tree commit diff stats
path: root/hw/misc/max111x.c
diff options
context:
space:
mode:
authorPeter Crosthwaite <crosthwaitepeter@gmail.com>2016-01-21 14:15:03 +0000
committerPeter Maydell <peter.maydell@linaro.org>2016-01-21 14:15:03 +0000
commitf698c8ba48809454ba4a28fe3eb6f677943cd1ae (patch)
tree188c9a0747eb5049cb4bebbb53be0ae87667c148 /hw/misc/max111x.c
parent3c9331c47f22224118d5019b0af8eac704824d8d (diff)
downloadfocaccia-qemu-f698c8ba48809454ba4a28fe3eb6f677943cd1ae.tar.gz
focaccia-qemu-f698c8ba48809454ba4a28fe3eb6f677943cd1ae.zip
qdev: get_child_bus(): Use QOM lookup if available
qbus_realize() adds busses as a QOM child of the device in addition to
adding it to the qdev bus list. Change get_child_bus() to use the QOM
child if it is available. This takes priority over the bus-list, but
the child object is checked for type correctness.

This prepares support for aliasing of buses. The use case is SoCs,
where a SoC container needs to present buses to the board level, but
the buses are implemented by controller IP we already model as self
contained qbus-containing devices.

Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Acked-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/misc/max111x.c')
0 files changed, 0 insertions, 0 deletions