aboutsummaryrefslogtreecommitdiff
path: root/target-mips/translate_init.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-06 10:57:59 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-06 10:57:59 +0000
commit958fb4a92cbbb2b9b49e4b4502a836c71435570a (patch)
treedc0e1f00ef92b9017ab0ad60e80ba1816766ad56 /target-mips/translate_init.c
parentb7ef7bf225416c2d4b9a730feec746c5b60e9655 (diff)
Use TCG for MIPS GPR moves.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4356 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/translate_init.c')
-rw-r--r--target-mips/translate_init.c2
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)