diff options
Diffstat (limited to 'target-microblaze')
-rw-r--r-- | target-microblaze/translate.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index 1224456662..58b27ca652 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/translate.c @@ -1674,8 +1674,12 @@ gen_intermediate_code_internal(MicroBlazeCPU *cpu, TranslationBlock *tb, lj = -1; num_insns = 0; max_insns = tb->cflags & CF_COUNT_MASK; - if (max_insns == 0) + 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 |