diff options
Diffstat (limited to 'target-openrisc/translate.c')
-rw-r--r-- | target-openrisc/translate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target-openrisc/translate.c b/target-openrisc/translate.c index 9755850006..7573d346d4 100644 --- a/target-openrisc/translate.c +++ b/target-openrisc/translate.c @@ -1654,6 +1654,9 @@ static inline void gen_intermediate_code_internal(OpenRISCCPU *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); |