mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
tcg: Initialize the prologue after GUEST_BASE is fixed.
This will allow backends to make intelligent choices about how to implement GUEST_BASE. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
a5b3b13bed
commit
9002ec794e
5 changed files with 25 additions and 2 deletions
|
@ -31,7 +31,7 @@
|
|||
#include "cache-utils.h"
|
||||
/* For tb_lock */
|
||||
#include "exec-all.h"
|
||||
|
||||
#include "tcg.h"
|
||||
#include "qemu-timer.h"
|
||||
#include "envlist.h"
|
||||
|
||||
|
@ -2984,6 +2984,13 @@ int main(int argc, char **argv, char **envp)
|
|||
syscall_init();
|
||||
signal_init();
|
||||
|
||||
#if defined(CONFIG_USE_GUEST_BASE)
|
||||
/* Now that we've loaded the binary, GUEST_BASE is fixed. Delay
|
||||
generating the prologue until now so that the prologue can take
|
||||
the real value of GUEST_BASE into account. */
|
||||
tcg_prologue_init(&tcg_ctx);
|
||||
#endif
|
||||
|
||||
#if defined(TARGET_I386)
|
||||
cpu_x86_set_cpl(env, 3);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue