diff options
Diffstat (limited to 'target-cris')
-rw-r--r-- | target-cris/translate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c index 3d55a6ad68..d038bdbd19 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -3155,6 +3155,9 @@ gen_intermediate_code_internal(CRISCPU *cpu, TranslationBlock *tb, 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 { |