mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw/arm: Use memory_region_init_rom() with read-only regions
This commit was produced with the Coccinelle script scripts/coccinelle/memory-region-housekeeping.cocci. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
d3ec684d70
commit
16260006ac
7 changed files with 8 additions and 16 deletions
|
@ -226,8 +226,7 @@ static void tosa_init(MachineState *machine)
|
|||
|
||||
mpu = pxa255_init(address_space_mem, tosa_binfo.ram_size);
|
||||
|
||||
memory_region_init_ram(rom, NULL, "tosa.rom", TOSA_ROM, &error_fatal);
|
||||
memory_region_set_readonly(rom, true);
|
||||
memory_region_init_rom(rom, NULL, "tosa.rom", TOSA_ROM, &error_fatal);
|
||||
memory_region_add_subregion(address_space_mem, 0, rom);
|
||||
|
||||
tmio = tc6393xb_init(address_space_mem, 0x10000000,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue