diff options
author | Igor Mammedov <imammedo@redhat.com> | 2018-05-17 13:51:17 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2018-05-25 10:10:55 +0200 |
commit | 2b5249b85cd9daaca3ea0a9ecab81c3e41cf9f55 (patch) | |
tree | d489c83b74e55d33ba61a80152d43ec6b1ff0f04 /linux-user | |
parent | c1e703f55814fe0fb95b6f0e5a1eff571455d08f (diff) | |
download | qemu-2b5249b85cd9daaca3ea0a9ecab81c3e41cf9f55.zip qemu-2b5249b85cd9daaca3ea0a9ecab81c3e41cf9f55.tar.gz qemu-2b5249b85cd9daaca3ea0a9ecab81c3e41cf9f55.tar.bz2 |
linux-user: update comments to point to tcg_exec_init()
cpu_init() was replaced by cpu_create() since 2.12 but comments
weren't updated. So update stale comments to point that page
sizes arei actually initialized by tcg_exec_init(). Also move
another qemu_host_page_size related comment before tcg_exec_init()
where it belongs.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <1526557877-293151-1-git-send-email-imammedo@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 3234754..78d6d3e 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -671,9 +671,8 @@ int main(int argc, char **argv, char **envp) } cpu_type = parse_cpu_model(cpu_model); + /* init tcg before creating CPUs and to get qemu_host_page_size */ 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); env = cpu->env_ptr; @@ -693,7 +692,7 @@ int main(int argc, char **argv, char **envp) 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. */ guest_base = HOST_PAGE_ALIGN(guest_base); |