Revision 6ae81775 target-mips/translate.c

b/target-mips/translate.c
2425 2425
    if (!env)
2426 2426
        return NULL;
2427 2427
    cpu_exec_init(env);
2428
    cpu_reset(env);
2429
    return env;
2430
}
2431

  
2432
void cpu_reset (CPUMIPSState *env)
2433
{
2434
    memset(env, 0, offsetof(CPUMIPSState, breakpoints));
2435

  
2428 2436
    tlb_flush(env, 1);
2437

  
2429 2438
    /* Minimal init */
2430 2439
    env->PC = 0xBFC00000;
2431 2440
#if defined (MIPS_USES_R4K_TLB)
......
2456 2465
#ifdef MIPS_USES_FPU
2457 2466
    env->fcr0 = MIPS_FCR0;	
2458 2467
#endif
2459
    return env;
2460 2468
}

Also available in: Unified diff