mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
accel/tcg: Introduce translator_io_start
New wrapper around gen_io_start which takes care of the USE_ICOUNT check, as well as marking the DisasContext to end the TB. Remove exec/gen-icount.h. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
5623423359
commit
dfd1b81274
33 changed files with 117 additions and 269 deletions
|
@ -185,9 +185,7 @@ static bool check_csr_flags(DisasContext *ctx, const CSRInfo *csr, bool write)
|
|||
if ((csr->flags & CSRFL_READONLY) && write) {
|
||||
return false;
|
||||
}
|
||||
if ((csr->flags & CSRFL_IO) &&
|
||||
(tb_cflags(ctx->base.tb) & CF_USE_ICOUNT)) {
|
||||
gen_io_start();
|
||||
if ((csr->flags & CSRFL_IO) && translator_io_start(&ctx->base)) {
|
||||
ctx->base.is_jmp = DISAS_EXIT_UPDATE;
|
||||
} else if ((csr->flags & CSRFL_EXITTB) && write) {
|
||||
ctx->base.is_jmp = DISAS_EXIT_UPDATE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue