diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-08-02 16:10:21 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-05 10:57:36 -0500 |
commit | 48f4dbfb8e23d38067a11800f9e00c122e8d336c (patch) | |
tree | ba4403df5a9b47e6ff26bce8db41864ca665c5ce /linux-user | |
parent | 15ab1500cb694f1d91b799ddfefd571a9f0ea2eb (diff) | |
download | qemu-48f4dbfb8e23d38067a11800f9e00c122e8d336c.tar.gz qemu-48f4dbfb8e23d38067a11800f9e00c122e8d336c.tar.bz2 qemu-48f4dbfb8e23d38067a11800f9e00c122e8d336c.zip |
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>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 6a8f4bdc11..8e15474329 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -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); |