summaryrefslogtreecommitdiffstats
path: root/scripts/modules
diff options
context:
space:
mode:
authorPeter Maydell2019-05-23 17:05:43 +0200
committerPeter Maydell2019-06-13 16:14:03 +0200
commitbe1ba4d56eba5666ee03b40e286d7315862ab188 (patch)
tree952c97d3b944844f69c12467135c35aed0082cb0 /scripts/modules
parenthw/arm/smmuv3: Fix decoding of ID register range (diff)
downloadqemu-be1ba4d56eba5666ee03b40e286d7315862ab188.tar.gz
qemu-be1ba4d56eba5666ee03b40e286d7315862ab188.tar.xz
qemu-be1ba4d56eba5666ee03b40e286d7315862ab188.zip
hw/core/bus.c: Only the main system bus can have no parent
In commit 80376c3fc2c38fdd453 in 2010 we added a workaround for some qbus buses not being connected to qdev devices -- if the bus has no parent object then we register a reset function which resets the bus on system reset (and unregister it when the bus is unparented). Nearly a decade later, we have now no buses in the tree which are created with non-NULL parents, so we can remove the workaround and instead just assert that if the bus has a NULL parent then it is the main system bus. (The absence of other parentless buses was confirmed by code inspection of all the callsites of qbus_create() and qbus_create_inplace() and cross-checked by 'make check'.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Damien Hedde <damien.hedde@greensocs.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20190523150543.22676-1-peter.maydell@linaro.org
Diffstat (limited to 'scripts/modules')
0 files changed, 0 insertions, 0 deletions