mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
When a device creates a MemoryRegion without setting its ownership,
the MemoryRegion is added to the machine "/unattached" container in
the QOM tree.
Example with the Samsung SMDKC210 board:
$ arm-softmmu/qemu-system-arm -M smdkc210 -S -monitor stdio
(qemu) info qom-tree
/machine (smdkc210-machine)
/unattached (container)
/io[0] (qemu:memory-region)
/exynos4210.dram0[0] (qemu:memory-region)
/exynos4210.irom[0] (qemu:memory-region)
/exynos4210.iram[0] (qemu:memory-region)
/exynos4210.chipid[0] (qemu:memory-region)
...
/device[26] (exynos4210.uart)
/exynos4210.uart[0] (qemu:memory-region)
/soc (exynos4210)
^
\__ [*]
The irom/iram/chipid regions should go under 'soc' at [*].
Add a semantic patch to let the device own the memory region.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
||
|---|---|---|
| .. | ||
| cpu_restore_state.cocci | ||
| err-bad-newline.cocci | ||
| error_propagate_null.cocci | ||
| exec_rw_const.cocci | ||
| inplace-byteswaps.cocci | ||
| memory-region-housekeeping.cocci | ||
| overflow_muldiv64.cocci | ||
| qobject.cocci | ||
| remove_local_err.cocci | ||
| remove_muldiv64.cocci | ||
| return_directly.cocci | ||
| round.cocci | ||
| simplify_muldiv64.cocci | ||
| swap_muldiv64.cocci | ||
| tcg_gen_extract.cocci | ||
| typecast.cocci | ||
| use-error_fatal.cocci | ||