Revision 51b2772f target-mips/translate_init.c
b/target-mips/translate_init.c | ||
---|---|---|
207 | 207 |
int cpu_mips_register (CPUMIPSState *env, mips_def_t *def) |
208 | 208 |
{ |
209 | 209 |
if (!def) |
210 |
def = env->cpu_model; |
|
211 |
if (!def) |
|
210 | 212 |
cpu_abort(env, "Unable to find MIPS CPU definition\n"); |
213 |
env->cpu_model = def; |
|
211 | 214 |
env->CP0_PRid = def->CP0_PRid; |
212 |
#ifdef TARGET_WORDS_BIGENDIAN |
|
213 |
env->CP0_Config0 = def->CP0_Config0 | (1 << CP0C0_BE); |
|
214 |
#else |
|
215 | 215 |
env->CP0_Config0 = def->CP0_Config0; |
216 |
#ifdef TARGET_WORDS_BIGENDIAN |
|
217 |
env->CP0_Config0 |= (1 << CP0C0_BE); |
|
216 | 218 |
#endif |
217 | 219 |
env->CP0_Config1 = def->CP0_Config1; |
218 | 220 |
env->CP0_Config2 = def->CP0_Config2; |
Also available in: Unified diff