From 190ce7fbc79fd0883a6170d7f30da59d366e6830 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 31 Aug 2015 14:34:41 -0700 Subject: tcg: Add TCG_MAX_INSNS Adjust all translators to respect it. Reviewed-by: Aurelien Jarno Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-lm32/translate.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'target-lm32') diff --git a/target-lm32/translate.c b/target-lm32/translate.c index 8ea7929ccb..e16c31a29c 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 { -- cgit v1.2.1