OSDN Git Service

accel/tcg: Use more accurate max_insns for tb_overflow
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 29 Jan 2023 05:11:20 +0000 (19:11 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 1 Mar 2023 17:33:27 +0000 (07:33 -1000)
commit9b1890ad901bd22352b8a9598220df51fe8b0d41
treed2ebe1ff18628461d2099864a2fe86ecb5cffbc9
parent597f9b2d30b612d760f9f48fe04cda29bf628e67
accel/tcg: Use more accurate max_insns for tb_overflow

Write back the number of insns that we attempt to translate,
so that if we longjmp out we have a more accurate limit for
the next attempt.  This results in fewer restarts when some
limit is consumed by few instructions.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/translator.c