diff options
Diffstat (limited to 'target-alpha/translate.c')
-rw-r--r-- | target-alpha/translate.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 1e1da542d0..cdfeaa6476 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -2404,16 +2404,20 @@ static always_inline void gen_intermediate_code_internal (CPUState *env, /* if we reach a page boundary or are single stepping, stop * generation */ - if (((ctx.pc & (TARGET_PAGE_SIZE - 1)) == 0) || - num_insns >= max_insns) { - break; - } - if (env->singlestep_enabled) { gen_excp(&ctx, EXCP_DEBUG, 0); break; } + if ((ctx.pc & (TARGET_PAGE_SIZE - 1)) == 0) + break; + + if (gen_opc_ptr >= gen_opc_end) + break; + + if (num_insns >= max_insns) + break; + if (singlestep) { break; } |