summaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-21 23:32:20 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-21 23:32:20 +0000
commit173d6cfe5129301a3a8f2570223aaa47a815f343 (patch)
tree383d89a9f3d4189748a5108b62c1eab89068a056 /target-mips
parent0e1fd3694e5386e791d86fb6bd7ead4d0c86bd9a (diff)
downloadqemu-173d6cfe5129301a3a8f2570223aaa47a815f343.tar.gz
qemu-173d6cfe5129301a3a8f2570223aaa47a815f343.tar.bz2
qemu-173d6cfe5129301a3a8f2570223aaa47a815f343.zip
cpu_exec_init() change
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1643 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/translate.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c
index 2dc33af728..71b101be32 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -1694,10 +1694,10 @@ CPUMIPSState *cpu_mips_init (void)
{
CPUMIPSState *env;
- cpu_exec_init();
env = qemu_mallocz(sizeof(CPUMIPSState));
if (!env)
return NULL;
+ cpu_exec_init(env);
tlb_flush(env, 1);
/* Minimal init */
env->PC = 0xBFC00000;
@@ -1722,8 +1722,5 @@ CPUMIPSState *cpu_mips_init (void)
env->CP0_Debug = (1 << CP0DB_CNT) | (0x1 << CP0DB_VER);
env->CP0_PRid = MIPS_CPU;
env->exception_index = EXCP_NONE;
-
- cpu_single_env = env;
-
return env;
}