From b0a0794a0f16e2160d8d35b14cca8f5e81b8b67e Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 9 Mar 2021 08:45:58 -0800 Subject: tcg: Re-order tcg_region_init vs tcg_prologue_init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- linux-user/main.c | 1 - 1 file changed, 1 deletion(-) (limited to 'linux-user') 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); -- cgit 1.4.1