aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/loader.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/loader.c b/hw/loader.c
index eef385eb5..3aba47c6a 100644
--- a/hw/loader.c
+++ b/hw/loader.c
@@ -695,6 +695,9 @@ static Rom *find_rom(target_phys_addr_t addr)
Rom *rom;
QTAILQ_FOREACH(rom, &roms, next) {
+ if (rom->fw_file) {
+ continue;
+ }
if (rom->addr > addr)
continue;
if (rom->addr + rom->romsize < addr)
@@ -717,6 +720,9 @@ int rom_copy(uint8_t *dest, target_phys_addr_t addr, size_t size)
Rom *rom;
QTAILQ_FOREACH(rom, &roms, next) {
+ if (rom->fw_file) {
+ continue;
+ }
if (rom->addr + rom->romsize < addr)
continue;
if (rom->addr > end)