Revision 173d6cfe target-mips/translate.c

b/target-mips/translate.c
1694 1694
{
1695 1695
    CPUMIPSState *env;
1696 1696

  
1697
    cpu_exec_init();
1698 1697
    env = qemu_mallocz(sizeof(CPUMIPSState));
1699 1698
    if (!env)
1700 1699
        return NULL;
1700
    cpu_exec_init(env);
1701 1701
    tlb_flush(env, 1);
1702 1702
    /* Minimal init */
1703 1703
    env->PC = 0xBFC00000;
......
1722 1722
    env->CP0_Debug = (1 << CP0DB_CNT) | (0x1 << CP0DB_VER);
1723 1723
    env->CP0_PRid = MIPS_CPU;
1724 1724
    env->exception_index = EXCP_NONE;
1725

  
1726
    cpu_single_env = env;
1727

  
1728 1725
    return env;
1729 1726
}

Also available in: Unified diff