hw/ppc/ppc405: Use memory_region_init_rom() with read-only regions
commit34b7645880750f0b8b7819249a3e039795137508
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 24 Feb 2020 16:04:51 +0000 (24 17:04 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Mar 2020 14:18:49 +0000 (17 15:18 +0100)
treeca0d7d0b5d5f89e825f194e49d698ee640d60689
parent30ade0c41653e94954971921d2ebeb25e5a206db
hw/ppc/ppc405: Use memory_region_init_rom() with read-only regions

The scripts/coccinelle/memory-region-housekeeping.cocci reported:
* TODO [[view:./hw/ppc/ppc405_boards.c::face=ovl-face1::linb=195::colb=8::cole=30][potential use of memory_region_init_rom*() in  ./hw/ppc/ppc405_boards.c::195]]
* TODO [[view:./hw/ppc/ppc405_boards.c::face=ovl-face1::linb=464::colb=8::cole=30][potential use of memory_region_init_rom*() in  ./hw/ppc/ppc405_boards.c::464]]

We can indeed replace the memory_region_init_ram() and
memory_region_set_readonly() calls by memory_region_init_rom().

Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/ppc/ppc405_boards.c