]> xenbits.xensource.com Git - qemu-xen-4.4-testing.git/commitdiff
simplified end of page handling
authorbellard <bellard>
Sun, 5 Jun 2005 14:39:02 +0000 (14:39 +0000)
committerbellard <bellard>
Sun, 5 Jun 2005 14:39:02 +0000 (14:39 +0000)
target-ppc/translate.c

index 2a828ed29160e35d1088d586df95e77b3d71bee3..b2006df532a1d02827dc05f4afd7b4dec162388d 100644 (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);