diff options
author | Philippe Mathieu-Daudé | 2020-02-24 17:04:51 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-03-17 15:18:49 +0100 |
commit | 34b7645880750f0b8b7819249a3e039795137508 (patch) | |
tree | ca0d7d0b5d5f89e825f194e49d698ee640d60689 /hw/arm/stm32f405_soc.c | |
parent | hw/arm/stm32: Use memory_region_init_rom() with read-only regions (diff) | |
download | qemu-34b7645880750f0b8b7819249a3e039795137508.tar.gz qemu-34b7645880750f0b8b7819249a3e039795137508.tar.xz qemu-34b7645880750f0b8b7819249a3e039795137508.zip |
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>
Diffstat (limited to 'hw/arm/stm32f405_soc.c')
0 files changed, 0 insertions, 0 deletions