diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-02-24 16:59:18 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-03-17 15:18:49 +0100 |
commit | 5b871c1b62036ef06eaf96ec03bbad801fcf9b89 (patch) | |
tree | a24350babc9a3222e2b78eb766a3eb5ff54cf0be /hw/arm/stm32f205_soc.c | |
parent | 34b7645880750f0b8b7819249a3e039795137508 (diff) | |
download | qemu-5b871c1b62036ef06eaf96ec03bbad801fcf9b89.zip qemu-5b871c1b62036ef06eaf96ec03bbad801fcf9b89.tar.gz qemu-5b871c1b62036ef06eaf96ec03bbad801fcf9b89.tar.bz2 |
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>
Diffstat (limited to 'hw/arm/stm32f205_soc.c')
-rw-r--r-- | hw/arm/stm32f205_soc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/arm/stm32f205_soc.c b/hw/arm/stm32f205_soc.c index 2de5627..6e93726 100644 --- a/hw/arm/stm32f205_soc.c +++ b/hw/arm/stm32f205_soc.c @@ -97,7 +97,6 @@ static void stm32f205_soc_realize(DeviceState *dev_soc, Error **errp) &error_fatal); memory_region_init_alias(flash_alias, NULL, "STM32F205.flash.alias", flash, 0, FLASH_SIZE); - memory_region_set_readonly(flash_alias, true); memory_region_add_subregion(system_memory, FLASH_BASE_ADDRESS, flash); memory_region_add_subregion(system_memory, 0, flash_alias); |