mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
Check rom_load_all() return value.
Check rom_load_all() return value. Also don't make option rom loading failure fatal. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
d8bcbabf26
commit
15ff770544
2 changed files with 5 additions and 2 deletions
|
@ -669,7 +669,7 @@ int rom_load_all(void)
|
|||
"addr 0x" TARGET_FMT_plx
|
||||
", size 0x%zx, max 0x" TARGET_FMT_plx ")\n",
|
||||
rom->name, addr, rom->romsize, rom->max);
|
||||
return -1;
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
/* fixed address requested */
|
||||
|
|
5
vl.c
5
vl.c
|
@ -6049,7 +6049,10 @@ int main(int argc, char **argv, char **envp)
|
|||
|
||||
qdev_machine_creation_done();
|
||||
|
||||
rom_load_all();
|
||||
if (rom_load_all() != 0) {
|
||||
fprintf(stderr, "rom loading failed\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
qemu_system_reset();
|
||||
if (loadvm) {
|
||||
|
|
Loading…
Reference in a new issue