mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -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
|
@ -160,6 +160,16 @@ void translator_loop(CPUState *cpu, TranslationBlock *tb, int *max_insns,
|
|||
*/
|
||||
bool translator_use_goto_tb(DisasContextBase *db, target_ulong dest);
|
||||
|
||||
/**
|
||||
* translator_io_start
|
||||
* @db: Disassembly context
|
||||
*
|
||||
* If icount is enabled, set cpu->can_to_io, adjust db->is_jmp to
|
||||
* DISAS_TOO_MANY if it is still DISAS_NEXT, and return true.
|
||||
* Otherwise return false.
|
||||
*/
|
||||
bool translator_io_start(DisasContextBase *db);
|
||||
|
||||
/*
|
||||
* Translator Load Functions
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue