hw/riscv: Let devices own the MemoryRegion they create
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 22 Feb 2020 17:12:57 +0000 (18:12 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Mar 2020 14:18:49 +0000 (15:18 +0100)
commit414c47d234d6b12756d987bd93b9c8a04d009675
treea93517813b9d5afe8fc4f4c59b98fd9b022dfb2c
parenta8457764877c7d4070e5369e98d27876470ac6d0
hw/riscv: Let devices own the MemoryRegion they create

Avoid orphan memory regions being added in the /unattached QOM
container.

This commit was produced with the Coccinelle script
scripts/coccinelle/memory-region-housekeeping.cocci.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/riscv/sifive_e.c
hw/riscv/sifive_u.c