diff options
author | Richard Henderson <rth@twiddle.net> | 2015-08-31 14:34:41 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2015-10-07 20:36:50 +1100 |
commit | 190ce7fbc79fd0883a6170d7f30da59d366e6830 (patch) | |
tree | b51499526739d5ac8a550e72b4e3e94214f48fcc /target-tilegx | |
parent | dc03246cc377268db63abc8c5663ef571aec2eea (diff) |
tcg: Add TCG_MAX_INSNS
Adjust all translators to respect it.
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-tilegx')
-rw-r--r-- | target-tilegx/translate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index c23b761979..a6b9cd87ac 100644 --- a/target-tilegx/translate.c +++ b/target-tilegx/translate.c @@ -2081,6 +2081,9 @@ static inline void gen_intermediate_code_internal(TileGXCPU *cpu, if (cs->singlestep_enabled || singlestep) { max_insns = 1; } + if (max_insns > TCG_MAX_INSNS) { + max_insns = TCG_MAX_INSNS; + } gen_tb_start(tb); while (1) { |