diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-28 13:37:19 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-28 13:37:19 +0000 |
commit | 893f986502196aeb43d176161179c3ff22a7e0a8 (patch) | |
tree | 5e1d112bce780ba14d97b7db8b58410c3fb43042 /target-mips/translate_init.c | |
parent | eaa728eec15d41158152fcf1308986e09f3e8f45 (diff) |
Honour current_tc for MIPS M{T,F}{HI,LO}, by Richard Sandiford.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4604 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/translate_init.c')
-rw-r--r-- | target-mips/translate_init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c index fb9e6e2d4a..d84bee01e9 100644 --- a/target-mips/translate_init.c +++ b/target-mips/translate_init.c @@ -547,6 +547,7 @@ static int cpu_mips_register (CPUMIPSState *env, const mips_def_t *def) env->CP0_SRSCtl = def->CP0_SRSCtl; env->current_tc = 0; env->current_tc_gprs = &env->gpr[env->current_tc][0]; + env->current_tc_hi = &env->HI[env->current_tc][0]; env->SEGBITS = def->SEGBITS; env->SEGMask = (target_ulong)((1ULL << def->SEGBITS) - 1); #if defined(TARGET_MIPS64) |