accel/tcg: increase default code gen buffer size for 64 bit
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 28 Feb 2020 19:24:15 +0000 (19:24 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 29 Feb 2020 01:43:31 +0000 (17:43 -0800)
commit600e17b261555c56a048781b8dd5ba3985650013
treea917d7a99cb61a5073568c67feec9aa7ec74ae32
parent21f2f447ad28d099d3ac5adc8ffe8eeaa56604f4
accel/tcg: increase default code gen buffer size for 64 bit

While 32mb is certainly usable a full system boot ends up flushing the
codegen buffer nearly 100 times. Increase the default on 64 bit hosts
to take advantage of all that spare memory. After this change I can
boot my tests system without any TB flushes.

As we usually run more CONFIG_USER binaries at a time in typical usage
we aren't quite as profligate for user-mode code generation usage. We
also bring the static code gen defies to the same place to keep all
the reasoning in the comments together.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Reviewed-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Message-Id: <20200228192415.19867-5-alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/translate-all.c