tcg: Add CPUState cflags_next_tb
commit9b990ee5a3cc6aa38f81266fb0c6ef37a36c45b9
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 13 Oct 2017 17:50:02 +0000 (13 10:50 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Oct 2017 20:53:41 +0000 (24 13:53 -0700)
treeed59ca42a7bfa9d7bac6785f2ad2852d2ef919f9
parent4e2ca83e71b51577b06b1468e836556912bd5b6e
tcg: Add CPUState cflags_next_tb

We were generating code during tb_invalidate_phys_page_range,
check_watchpoint, cpu_io_recompile, and (seemingly) discarding
the TB, assuming that it would magically be picked up during
the next iteration through the cpu_exec loop.

Instead, record the desired cflags in CPUState so that we request
the proper TB so that there is no more magic.

Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cpu-exec.c
accel/tcg/translate-all.c
exec.c
include/qom/cpu.h
qom/cpu.c