]> git.proxmox.com Git - mirror_qemu.git/commit
tcg: Move in_code_gen_buffer and tests to region.c
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 13 Mar 2021 18:29:28 +0000 (12:29 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 11 Jun 2021 16:27:08 +0000 (09:27 -0700)
commit47d590df34b22595f1a6f9e8aafe5531cd2e4b13
tree9e84a3c4140f84d2689543ed428130ec8ff50e52
parenta4df1b2d193d1a265bfc3773703bba7da12446e9
tcg: Move in_code_gen_buffer and tests to region.c

Shortly, the full code_gen_buffer will only be visible
to region.c, so move in_code_gen_buffer out-of-line.

Move the debugging versions of tcg_splitwx_to_{rx,rw}
to region.c as well, so that the compiler gets to see
the implementation of in_code_gen_buffer.

This leaves exactly one use of in_code_gen_buffer outside
of region.c, in cpu_restore_state.  Which, being on the
exception path, is not performance critical.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/tcg/tcg.h
tcg/region.c
tcg/tcg.c