Markus Armbruster 210d18674a armv7m: Delete unused "ARM,bitband-memory" devices
These devices are optional, and enabled by property "enable-bitband".
armv7m_instance_init() creates them unconditionally, because the
property has not been set then.  armv7m_realize() realizes them only
when the property is true.  Works, although it leaves unrealized
devices hanging around in the QOM composition tree.  Affects machines
microbit, mps2-an505, mps2-an521, musca-a, and musca-b1.

Delete the unused devices by making armv7m_realize() unparent them.
Visible in "info qom-tree"; here's the change for microbit:

     /machine (microbit-machine)
       /microbit.twi (microbit.i2c)
         /microbit.twi[0] (qemu:memory-region)
       /nrf51 (nrf51-soc)
         /armv6m (armv7m)
           /armv7m-container[0] (qemu:memory-region)
    -      /bitband[0] (ARM,bitband-memory)
    -        /bitband[0] (qemu:memory-region)
    -      /bitband[1] (ARM,bitband-memory)
    -        /bitband[0] (qemu:memory-region)
           /cpu (cortex-m0-arm-cpu)

Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20200609122339.937862-7-armbru@redhat.com>
2020-06-15 21:36:09 +02:00
..
2020-06-15 21:36:09 +02:00
2020-06-15 21:36:09 +02:00
2020-05-21 22:05:27 +01:00
2020-05-21 22:05:27 +01:00
2020-02-19 16:49:54 +00:00
2020-05-21 22:05:27 +01:00
2020-02-19 16:49:55 +00:00
2019-08-16 13:31:53 +02:00
2020-02-19 16:49:55 +00:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:53 +02:00
2020-02-19 16:49:56 +00:00
2020-01-07 17:24:29 +04:00
2020-01-07 17:24:29 +04:00
2019-09-03 11:26:55 -03:00
2020-03-05 12:18:16 -05:00