tcg: Emit prologue to the beginning of code_gen_buffer
commit8163b74938d8b7d12e70597c4553dd0dc49443d5
authorRichard Henderson <rth@twiddle.net>
Sat, 19 Sep 2015 06:43:05 +0000 (18 23:43 -0700)
committerRichard Henderson <rth@twiddle.net>
Wed, 7 Oct 2015 09:36:53 +0000 (7 20:36 +1100)
tree8cac7a8219d3e650cd0f9854fb62a73385383558
parent04fe64000162c45d8974da9ca4d266f8d0e67eb7
tcg: Emit prologue to the beginning of code_gen_buffer

By putting the prologue at the end, we risk overwriting the
prologue should our estimate of maximum TB size.  Given the
two different placements of the call to tcg_prologue_init,
move the high water mark computation into tcg_prologue_init.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/tcg.c
translate-all.c