simplified end of page handling

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1443 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2005-06-05 14:39:02 +00:00
parent 7c48011b45
commit 2d61879305
1 changed files with 1 additions and 6 deletions

View File

@ -3321,14 +3321,9 @@ int gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
ctx.exception != EXCP_TRAP)) {
RET_EXCP(ctxp, EXCP_TRACE, 0);
}
if (ctx.exception != EXCP_NONE)
break;
/* if we reach a page boundary, stop generation */
if ((ctx.nip & (TARGET_PAGE_SIZE - 1)) == 0) {
gen_op_b((long)ctx.tb, ctx.nip);
ctx.exception = EXCP_BRANCH;
if ((ctx.nip & (TARGET_PAGE_SIZE - 1)) == 0)
break;
}
}
if (ctx.exception == EXCP_NONE) {
gen_op_b((unsigned long)ctx.tb, ctx.nip);