Revision c53be334 target-mips/op.c

b/target-mips/op.c
487 487

  
488 488
/* Branchs */
489 489
//#undef USE_DIRECT_JUMP
490
#define EIP env->PC
490

  
491
void OPPROTO op_goto_tb0(void)
492
{
493
    GOTO_TB(op_goto_tb0, PARAM1, 0);
494
}
495

  
496
void OPPROTO op_goto_tb1(void)
497
{
498
    GOTO_TB(op_goto_tb1, PARAM1, 1);
499
}
491 500

  
492 501
/* Branch to register */
493 502
void op_save_breg_target (void)
......
506 515
    RETURN();
507 516
}
508 517

  
509
/* Unconditional branch */
510
void op_branch (void)
511
{
512
    JUMP_TB(branch, PARAM1, 0, PARAM2);
513
    RETURN();
514
}
515

  
516 518
void op_save_btarget (void)
517 519
{
518 520
    env->btarget = PARAM1;
......
538 540
    RETURN();
539 541
}
540 542

  
541
void op_bcond (void)
542
{
543
    if (T2) {
544
        JUMP_TB(bcond, PARAM1, 0, PARAM2);
545
    } else {
546
        JUMP_TB(bcond, PARAM1, 1, PARAM3);
547
    }
548
    RETURN();
549
}
550

  
551
/* Likely branch (used to skip the delay slot) */
552
void op_blikely (void)
543
void op_jnz_T2 (void)
553 544
{
554
    /* If the test is false, skip the delay slot */
555
    if (T2 == 0) {
556
        env->hflags = PARAM3;
557
        JUMP_TB(blikely, PARAM1, 1, PARAM2);
558
    }
545
    if (T2)
546
        GOTO_LABEL_PARAM(1);
559 547
    RETURN();
560 548
}
561 549

  

Also available in: Unified diff