tcg: Respect highwater in tcg_out_tb_finalize
authorRichard Henderson <rth@twiddle.net>
Wed, 2 Dec 2015 21:59:59 +0000 (13:59 -0800)
committerRichard Henderson <rth@twiddle.net>
Mon, 8 Feb 2016 23:19:32 +0000 (10:19 +1100)
commit23dceda62a3643f734b7aa474fa6052593ae1a70
tree2d87c66e824a2fcd02556700ae3a3df6b0a5d296
parente4a096b1cd4350eeca5dcdc391ab333d2083d7fd
tcg: Respect highwater in tcg_out_tb_finalize

Undo the workaround at b17a6d3390f87620735f7efb03bb1c96682ff449.

If there are lots of memory operations in a TB, the slow path code
can exceed the highwater reservation.  Add a check within the loop.

Tested-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/ia64/tcg-target.c
tcg/tcg-be-ldst.h
tcg/tcg-be-null.h
tcg/tcg.c