]> Git Repo - qemu.git/commitdiff
Actually skip over delay slot for a non-taken branch likely.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 7 Apr 2007 01:10:22 +0000 (01:10 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 7 Apr 2007 01:10:22 +0000 (01:10 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2628 c046a42c-6fe2-441c-8c8c-71466251a162

target-mips/translate.c

index f3b2de446eedf2f5011a0053650521ea90be8b60..c646f7f376e2c438df8d36a2b016cb89045358b1 100644 (file)
@@ -1530,14 +1530,14 @@ static void gen_compute_branch (DisasContext *ctx, uint32_t opc,
         case OPC_BLTZALL: /* 0 < 0 likely */
             gen_op_set_T0(ctx->pc + 8);
             gen_op_store_T0_gpr(31);
-            gen_goto_tb(ctx, 0, ctx->pc + 4);
+            gen_goto_tb(ctx, 0, ctx->pc + 8);
             return;
         case OPC_BNEL:    /* rx != rx likely */
         case OPC_BGTZL:   /* 0 > 0 likely */
         case OPC_BLTZL:   /* 0 < 0 likely */
             /* Skip the instruction in the delay slot */
             MIPS_DEBUG("bnever and skip");
-            gen_goto_tb(ctx, 0, ctx->pc + 4);
+            gen_goto_tb(ctx, 0, ctx->pc + 8);
             return;
         case OPC_J:
             ctx->hflags |= MIPS_HFLAG_B;
This page took 0.038726 seconds and 4 git commands to generate.