summary refs log tree commit diff stats
path: root/python/scripts/mkvenv.py
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-07-26 12:58:08 -0700
committerRichard Henderson <richard.henderson@linaro.org>2023-07-31 12:19:13 -0700
commitad17868eb162a5466d8ad43e5ccb428776403308 (patch)
tree0aa1f1fb3bfcdf628be51dc978fc2cf00ed69842 /python/scripts/mkvenv.py
parent79e29851bf57741252a20838cdc59074ab5bac29 (diff)
downloadfocaccia-qemu-ad17868eb162a5466d8ad43e5ccb428776403308.tar.gz
focaccia-qemu-ad17868eb162a5466d8ad43e5ccb428776403308.zip
accel/tcg: Clear tcg_ctx->gen_tb on buffer overflow
On overflow of code_gen_buffer, we unlock the guest pages we had been
translating, but failed to clear gen_tb.  On restart, if we cannot
allocate a TB, we exit to the main loop to perform the flush of all
TBs as soon as possible.  With garbage in gen_tb, we hit an assert:

../src/accel/tcg/tb-maint.c:348:page_unlock__debug: \
    assertion failed: (page_is_locked(pd))

Fixes: deba78709ae8 ("accel/tcg: Always lock pages before translation")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'python/scripts/mkvenv.py')
0 files changed, 0 insertions, 0 deletions