Revision 952a328f target-sparc/translate.c

b/target-sparc/translate.c
3618 3618
    }
3619 3619
}
3620 3620

  
3621
int cpu_sparc_register (CPUSPARCState *env, const sparc_def_t *def)
3621
int cpu_sparc_register (CPUSPARCState *env, const sparc_def_t *def, unsigned int cpu)
3622 3622
{
3623 3623
    env->version = def->iu_version;
3624 3624
    env->fsr = def->fpu_version;
3625 3625
#if !defined(TARGET_SPARC64)
3626 3626
    env->mmuregs[0] |= def->mmu_version;
3627
    env->mxccregs[7] = ((cpu + 8) & 0xf) << 24;
3627 3628
#endif
3628 3629
    return 0;
3629 3630
}

Also available in: Unified diff