Commit 2d618793 authored by bellard's avatar bellard
Browse files

simplified end of page handling


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1443 c046a42c-6fe2-441c-8c8c-71466251a162
parent 7c48011b
...@@ -3321,15 +3321,10 @@ int gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb, ...@@ -3321,15 +3321,10 @@ int gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
ctx.exception != EXCP_TRAP)) { ctx.exception != EXCP_TRAP)) {
RET_EXCP(ctxp, EXCP_TRACE, 0); RET_EXCP(ctxp, EXCP_TRACE, 0);
} }
if (ctx.exception != EXCP_NONE)
break;
/* if we reach a page boundary, stop generation */ /* if we reach a page boundary, stop generation */
if ((ctx.nip & (TARGET_PAGE_SIZE - 1)) == 0) { if ((ctx.nip & (TARGET_PAGE_SIZE - 1)) == 0)
gen_op_b((long)ctx.tb, ctx.nip);
ctx.exception = EXCP_BRANCH;
break; break;
} }
}
if (ctx.exception == EXCP_NONE) { if (ctx.exception == EXCP_NONE) {
gen_op_b((unsigned long)ctx.tb, ctx.nip); gen_op_b((unsigned long)ctx.tb, ctx.nip);
} else if (ctx.exception != EXCP_BRANCH) { } else if (ctx.exception != EXCP_BRANCH) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment