mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
loader: allow adding ROMs in done callbacks
Don't abort if machine done callbacks add ROMs. Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Tested-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Tested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
bc70232918
commit
d916b46494
3 changed files with 9 additions and 1 deletions
|
@ -812,10 +812,14 @@ int rom_load_all(void)
|
|||
memory_region_unref(section.mr);
|
||||
}
|
||||
qemu_register_reset(rom_reset, NULL);
|
||||
roms_loaded = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void rom_load_done(void)
|
||||
{
|
||||
roms_loaded = 1;
|
||||
}
|
||||
|
||||
void rom_set_fw(FWCfgState *f)
|
||||
{
|
||||
fw_cfg = f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue