mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -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
3
vl.c
3
vl.c
|
@ -4339,6 +4339,9 @@ int main(int argc, char **argv, char **envp)
|
|||
qemu_register_reset(qbus_reset_all_fn, sysbus_get_default());
|
||||
qemu_run_machine_init_done_notifiers();
|
||||
|
||||
/* Done notifiers can load ROMs */
|
||||
rom_load_done();
|
||||
|
||||
qemu_system_reset(VMRESET_SILENT);
|
||||
if (loadvm) {
|
||||
if (load_vmstate(loadvm) < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue