summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorRichard Henderson2021-03-09 17:45:58 +0100
committerRichard Henderson2021-06-11 18:26:28 +0200
commitb0a0794a0f16e2160d8d35b14cca8f5e81b8b67e (patch)
tree493dd7155ef6293b8798f1855662f7ec97b744bb /linux-user
parentmeson: Split out fpu/meson.build (diff)
downloadqemu-b0a0794a0f16e2160d8d35b14cca8f5e81b8b67e.tar.gz
qemu-b0a0794a0f16e2160d8d35b14cca8f5e81b8b67e.tar.xz
qemu-b0a0794a0f16e2160d8d35b14cca8f5e81b8b67e.zip
tcg: Re-order tcg_region_init vs tcg_prologue_init
Instead of delaying tcg_region_init until after tcg_prologue_init is complete, do tcg_region_init first and let tcg_prologue_init shrink the first region by the size of the generated prologue. Reviewed-by: Luis Pires <luis.pires@eldorado.org.br> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index 4dfc47ad3b..2fb3a366a6 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -868,7 +868,6 @@ int main(int argc, char **argv, char **envp)
generating the prologue until now so that the prologue can take
the real value of GUEST_BASE into account. */
tcg_prologue_init(tcg_ctx);
- tcg_region_init();
target_cpu_copy_regs(env, regs);