Avoid allocating TCG resources in non-TCG mode
Do not allocate TCG-only resources like the translation buffer when running over KVM or XEN. Saves a "few" bytes in the qemu address space and is also conceptually cleaner. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
committed by
Anthony Liguori
parent
8417cebfda
commit
d5ab9713d2
@@ -3117,7 +3117,8 @@ int main(int argc, char **argv, char **envp)
|
||||
cpu_model = "any";
|
||||
#endif
|
||||
}
|
||||
cpu_exec_init_all(0);
|
||||
tcg_exec_init(0);
|
||||
cpu_exec_init_all();
|
||||
/* NOTE: we need to init the CPU at this stage to get
|
||||
qemu_host_page_size */
|
||||
env = cpu_init(cpu_model);
|
||||
|
Reference in New Issue
Block a user