configure_accelerator() uses current_machine as parameter. But
current_machine struct does not contain proper ram_size since it is
set just before machine init. So configure_accelerator() should run
after entire current_machine memebers are prepared.
Change-Id: I944d60d1768bb0512350cbd2ca4a62e3962515ca
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
exit(1);
}
- configure_accelerator(current_machine);
-
if (qtest_chrdev) {
Error *local_err = NULL;
qtest_init(qtest_chrdev, qtest_log, &local_err);
current_machine->boot_order = boot_order;
current_machine->cpu_model = cpu_model;
+ configure_accelerator(current_machine);
+
machine_class->init(current_machine);
realtime_init();