mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43: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
|
@ -213,9 +213,8 @@ static void palmte_init(MachineState *machine)
|
|||
mpu = omap310_mpu_init(machine->ram, machine->cpu_type);
|
||||
|
||||
/* External Flash (EMIFS) */
|
||||
memory_region_init_ram(flash, NULL, "palmte.flash", flash_size,
|
||||
memory_region_init_rom(flash, NULL, "palmte.flash", flash_size,
|
||||
&error_fatal);
|
||||
memory_region_set_readonly(flash, true);
|
||||
memory_region_add_subregion(address_space_mem, OMAP_CS0_BASE, flash);
|
||||
|
||||
memory_region_init_io(&cs[0], NULL, &static_ops, &cs0val, "palmte-cs0",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue