summaryrefslogtreecommitdiffstats
path: root/linux-user/elfload.c
diff options
context:
space:
mode:
authorRichard Henderson2015-09-22 22:01:15 +0200
committerRichard Henderson2015-10-07 11:36:53 +0200
commitb125f9dc7bd68cd4c57189db4da83b0620b28a72 (patch)
tree8d2b7a06e64121738343a3abebb5070b64f4ff21 /linux-user/elfload.c
parenttcg: Allocate a guard page after code_gen_buffer (diff)
downloadqemu-b125f9dc7bd68cd4c57189db4da83b0620b28a72.tar.gz
qemu-b125f9dc7bd68cd4c57189db4da83b0620b28a72.tar.xz
qemu-b125f9dc7bd68cd4c57189db4da83b0620b28a72.zip
tcg: Check for overflow via highwater mark
We currently pre-compute an worst case code size for any TB, which works out to be 122kB. Since the average TB size is near 1kB, this wastes quite a lot of storage. Instead, check for overflow in between generating code for each opcode. The overhead of the check isn't measurable and wastage is minimized. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'linux-user/elfload.c')
0 files changed, 0 insertions, 0 deletions