|
@@ -671,9 +671,8 @@ int main(int argc, char **argv, char **envp)
|
|
}
|
|
}
|
|
cpu_type = parse_cpu_model(cpu_model);
|
|
cpu_type = parse_cpu_model(cpu_model);
|
|
|
|
|
|
|
|
+ /* init tcg before creating CPUs and to get qemu_host_page_size */
|
|
tcg_exec_init(0);
|
|
tcg_exec_init(0);
|
|
- /* NOTE: we need to init the CPU at this stage to get
|
|
|
|
- qemu_host_page_size */
|
|
|
|
|
|
|
|
cpu = cpu_create(cpu_type);
|
|
cpu = cpu_create(cpu_type);
|
|
env = cpu->env_ptr;
|
|
env = cpu->env_ptr;
|
|
@@ -693,7 +692,7 @@ int main(int argc, char **argv, char **envp)
|
|
envlist_free(envlist);
|
|
envlist_free(envlist);
|
|
|
|
|
|
/*
|
|
/*
|
|
- * Now that page sizes are configured in cpu_init() we can do
|
|
|
|
|
|
+ * Now that page sizes are configured in tcg_exec_init() we can do
|
|
* proper page alignment for guest_base.
|
|
* proper page alignment for guest_base.
|
|
*/
|
|
*/
|
|
guest_base = HOST_PAGE_ALIGN(guest_base);
|
|
guest_base = HOST_PAGE_ALIGN(guest_base);
|