Revision e58c8ba5 target-mips/helper.c

b/target-mips/helper.c
403 403
            env->PC = (int32_t)(env->CP0_EBase & ~0x3ff);
404 404
        }
405 405
        env->PC += offset;
406
        env->CP0_Cause = (env->CP0_Cause & ~0x7C) | (cause << 2);
406
        env->CP0_Cause = (env->CP0_Cause & ~(0x1f << CP0Ca_EC)) | (cause << CP0Ca_EC);
407 407
        break;
408 408
    default:
409 409
        if (logfile) {

Also available in: Unified diff