|
@@ -1731,12 +1731,6 @@ void qdev_machine_creation_done(void)
|
|
|
phase_advance(PHASE_MACHINE_READY);
|
|
|
qdev_assert_realized_properly();
|
|
|
|
|
|
- /*
|
|
|
- * If the user used -machine dumpdtb=file.dtb to request that we
|
|
|
- * dump the DTB to a file, do it now, and exit.
|
|
|
- */
|
|
|
- handle_machine_dumpdtb(current_machine);
|
|
|
-
|
|
|
/* TODO: once all bus devices are qdevified, this should be done
|
|
|
* when bus is created by qdev.c */
|
|
|
/*
|
|
@@ -1750,6 +1744,12 @@ void qdev_machine_creation_done(void)
|
|
|
|
|
|
notifier_list_notify(&machine_init_done_notifiers, NULL);
|
|
|
|
|
|
+ /*
|
|
|
+ * If the user used -machine dumpdtb=file.dtb to request that we
|
|
|
+ * dump the DTB to a file, do it now, and exit.
|
|
|
+ */
|
|
|
+ handle_machine_dumpdtb(current_machine);
|
|
|
+
|
|
|
if (rom_check_and_register_reset() != 0) {
|
|
|
exit(1);
|
|
|
}
|