diff options
Diffstat (limited to 'target-mips/translate_init.c')
-rw-r--r-- | target-mips/translate_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c index 72788e81c9..d069285c8b 100644 --- a/target-mips/translate_init.c +++ b/target-mips/translate_init.c @@ -543,6 +543,8 @@ static int cpu_mips_register (CPUMIPSState *env, const mips_def_t *def) env->CP0_Status_rw_bitmask = def->CP0_Status_rw_bitmask; env->CP0_TCStatus_rw_bitmask = def->CP0_TCStatus_rw_bitmask; env->CP0_SRSCtl = def->CP0_SRSCtl; + env->current_tc = 0; + env->current_tc_gprs = &env->gpr[env->current_tc][0]; env->SEGBITS = def->SEGBITS; env->SEGMask = (target_ulong)((1ULL << def->SEGBITS) - 1); #if defined(TARGET_MIPS64) |