aboutsummaryrefslogtreecommitdiff
path: root/target-lm32
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2015-08-31 14:34:41 -0700
committerRichard Henderson <rth@twiddle.net>2015-10-07 20:36:50 +1100
commit190ce7fbc79fd0883a6170d7f30da59d366e6830 (patch)
treeb51499526739d5ac8a550e72b4e3e94214f48fcc /target-lm32
parentdc03246cc377268db63abc8c5663ef571aec2eea (diff)
downloadqemu-190ce7fbc79fd0883a6170d7f30da59d366e6830.zip
qemu-190ce7fbc79fd0883a6170d7f30da59d366e6830.tar.gz
qemu-190ce7fbc79fd0883a6170d7f30da59d366e6830.tar.bz2
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-lm32')
-rw-r--r--target-lm32/translate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-lm32/translate.c b/target-lm32/translate.c
index 8ea7929..e16c31a 100644
--- a/target-lm32/translate.c
+++ b/target-lm32/translate.c
@@ -1069,6 +1069,9 @@ void gen_intermediate_code_internal(LM32CPU *cpu,
if (max_insns == 0) {
max_insns = CF_COUNT_MASK;
}
+ if (max_insns > TCG_MAX_INSNS) {
+ max_insns = TCG_MAX_INSNS;
+ }
gen_tb_start(tb);
do {