提交 0ac543de 编写于 作者: J Jan Kiszka 提交者: Edgar E. Iglesias

Reorder default ram_size initialization

code_gen_alloc depends on it, and that is now called earlier via
configure_accelerator.
Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: NEdgar E. Iglesias <edgar.iglesias@gmail.com>
上级 02fa69b6
......@@ -3077,6 +3077,11 @@ int main(int argc, char **argv, char **envp)
exit(1);
}
/* init the memory */
if (ram_size == 0) {
ram_size = DEFAULT_RAM_SIZE * 1024 * 1024;
}
configure_accelerator();
if (qemu_init_main_loop()) {
......@@ -3111,11 +3116,6 @@ int main(int argc, char **argv, char **envp)
if (foreach_device_config(DEV_BT, bt_parse))
exit(1);
/* init the memory */
if (ram_size == 0) {
ram_size = DEFAULT_RAM_SIZE * 1024 * 1024;
}
if (!xen_enabled()) {
/* On 32-bit hosts, QEMU is limited by virtual address space */
if (ram_size > (2047 << 20) && HOST_LONG_BITS == 32) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册