Commit 7496f526 authored by bellard's avatar bellard
Browse files

cpu_single_env init


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@967 c046a42c-6fe2-441c-8c8c-71466251a162
parent 91d848eb
......@@ -815,6 +815,7 @@ CPUARMState *cpu_arm_init(void)
if (!env)
return NULL;
memset(env, 0, sizeof(CPUARMState));
cpu_single_env = env;
return env;
}
......
......@@ -75,9 +75,9 @@ CPUX86State *cpu_x86_init(void)
modify_ldt(1, &ldt, sizeof(ldt)); /* write ldt entry */
asm volatile ("movl %0, %%fs" : : "r" ((1 << 3) | 7));
cpu_single_env = env;
}
#endif
cpu_single_env = env;
cpu_reset(env);
return env;
}
......
......@@ -2994,7 +2994,7 @@ CPUPPCState *cpu_ppc_init(void)
env->nip = 0xFFFFFFFC;
#endif
env->access_type = ACCESS_INT;
cpu_single_env = env;
return env;
}
......
......@@ -840,6 +840,7 @@ CPUSPARCState *cpu_sparc_init(void)
env->wim = 1;
env->regwptr = env->regbase + (env->cwp * 16);
env->user_mode_only = 1;
cpu_single_env = env;
return (env);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment