qemu-e2k/accel/tcg
Richard Henderson ad17868eb1 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: deba78709a ("accel/tcg: Always lock pages before translation")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2023-07-31 12:19:13 -07:00
..
atomic_common.c.inc tcg: Use HAVE_CMPXCHG128 instead of CONFIG_CMPXCHG128 2023-07-15 08:02:49 +01:00
atomic_template.h
cpu-exec-common.c
cpu-exec.c accel/tcg: Zero-pad PC in TCG CPU exec trace lines 2023-07-17 11:05:08 +01:00
cputlb.c accel/tcg: Zero-pad vaddr in tlb_debug output 2023-07-24 09:48:41 +01:00
debuginfo.c
debuginfo.h
internal.h accel/tcg: Always lock pages before translation 2023-07-15 08:02:33 +01:00
ldst_atomicity.c.inc accel/tcg: Take mmap_lock in load_atomic*_or_exit 2023-07-23 17:57:10 +01:00
ldst_common.c.inc
meson.build
monitor.c accel/tcg: remove CONFIG_PROFILER 2023-06-26 17:33:00 +02:00
perf.c
perf.h
plugin-gen.c
plugin-helpers.h
tb-context.h
tb-hash.h accel/tcg: Widen pc to vaddr in CPUJumpCache 2023-06-26 17:32:59 +02:00
tb-jmp-cache.h accel/tcg: Widen pc to vaddr in CPUJumpCache 2023-06-26 17:32:59 +02:00
tb-maint.c accel/tcg: Always lock pages before translation 2023-07-15 08:02:33 +01:00
tcg-accel-ops-icount.c
tcg-accel-ops-icount.h
tcg-accel-ops-mttcg.c accel: Remove unused hThread variable on TCG/WHPX 2023-06-28 13:55:35 +02:00
tcg-accel-ops-mttcg.h
tcg-accel-ops-rr.c accel: Remove unused hThread variable on TCG/WHPX 2023-06-28 13:55:35 +02:00
tcg-accel-ops-rr.h
tcg-accel-ops.c accel/tcg: remove CONFIG_PROFILER 2023-06-26 17:33:00 +02:00
tcg-accel-ops.h
tcg-all.c accel/tcg: Remove check_tcg_memory_orders_compatible 2023-06-26 17:33:00 +02:00
tcg-runtime-gvec.c
tcg-runtime.c
tcg-runtime.h tcg: Use HAVE_CMPXCHG128 instead of CONFIG_CMPXCHG128 2023-07-15 08:02:49 +01:00
trace-events
trace.h
translate-all.c accel/tcg: Clear tcg_ctx->gen_tb on buffer overflow 2023-07-31 12:19:13 -07:00
translator.c accel/tcg: Always lock pages before translation 2023-07-15 08:02:33 +01:00
user-exec-stub.c
user-exec.c accel/tcg: Fix type of 'last' for pageflags_{find,next} 2023-07-24 09:48:49 +01:00