mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-23 16:08:41 -07:00
tcg: Hoist max_insns computation to tb_gen_code
In order to handle TB's that translate to too much code, we need to place the control of the length of the translation in the hands of the code gen master loop. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
464c2969d5
commit
8b86d6d258
25 changed files with 56 additions and 127 deletions
|
|
@ -123,6 +123,7 @@ typedef struct TranslatorOps {
|
|||
* @db: Disassembly context.
|
||||
* @cpu: Target vCPU.
|
||||
* @tb: Translation block.
|
||||
* @max_insns: Maximum number of insns to translate.
|
||||
*
|
||||
* Generic translator loop.
|
||||
*
|
||||
|
|
@ -137,7 +138,7 @@ typedef struct TranslatorOps {
|
|||
* - When too many instructions have been translated.
|
||||
*/
|
||||
void translator_loop(const TranslatorOps *ops, DisasContextBase *db,
|
||||
CPUState *cpu, TranslationBlock *tb);
|
||||
CPUState *cpu, TranslationBlock *tb, int max_insns);
|
||||
|
||||
void translator_loop_temp_check(DisasContextBase *db);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue