accel/tcg: Move most of gen-icount.h into translator.c
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 2 Apr 2023 00:09:47 +0000 (17:09 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 5 Jun 2023 19:04:29 +0000 (12:04 -0700)
commit56234233594d05b1092b3cb04de845aeffa27f4c
tree3fb4c4f5cc1a918bbc66b4ceb0dce85c210d4d7d
parent80c5813d9068b034eb5abf9366b72c8417bcd17d
accel/tcg: Move most of gen-icount.h into translator.c

The only usage of gen_tb_start and gen_tb_end are here.
Move the static icount_start_insn variable into a local
within translator_loop.  Simplify the two subroutines
by passing in the existing local cflags variable.

Leave only the declaration of gen_io_start in gen-icount.h.

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