mirror of https://github.com/xemu-project/xemu.git
loader: more ignores for rom intended to be loaded by the bios
Similarly to what has been done in e405a2ba91
,
ignore rom intended to be loaded by the bios in find_rom() and rom_copy().
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
e405a2ba91
commit
f21a59c224
|
@ -695,6 +695,9 @@ static Rom *find_rom(target_phys_addr_t addr)
|
||||||
Rom *rom;
|
Rom *rom;
|
||||||
|
|
||||||
QTAILQ_FOREACH(rom, &roms, next) {
|
QTAILQ_FOREACH(rom, &roms, next) {
|
||||||
|
if (rom->fw_file) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (rom->addr > addr)
|
if (rom->addr > addr)
|
||||||
continue;
|
continue;
|
||||||
if (rom->addr + rom->romsize < addr)
|
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;
|
Rom *rom;
|
||||||
|
|
||||||
QTAILQ_FOREACH(rom, &roms, next) {
|
QTAILQ_FOREACH(rom, &roms, next) {
|
||||||
|
if (rom->fw_file) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (rom->addr + rom->romsize < addr)
|
if (rom->addr + rom->romsize < addr)
|
||||||
continue;
|
continue;
|
||||||
if (rom->addr > end)
|
if (rom->addr > end)
|
||||||
|
|
Loading…
Reference in New Issue