mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/arm: Remove unnecessary memory_region_set_readonly() on ROM alias
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
34b7645880
commit
5b871c1b62
3 changed files with 0 additions and 3 deletions
|
@ -103,7 +103,6 @@ static void stm32f405_soc_realize(DeviceState *dev_soc, Error **errp)
|
|||
}
|
||||
memory_region_init_alias(&s->flash_alias, NULL, "STM32F405.flash.alias",
|
||||
&s->flash, 0, FLASH_SIZE);
|
||||
memory_region_set_readonly(&s->flash_alias, true);
|
||||
|
||||
memory_region_add_subregion(system_memory, FLASH_BASE_ADDRESS, &s->flash);
|
||||
memory_region_add_subregion(system_memory, 0, &s->flash_alias);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue