mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
cpu_exec_init() change
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1643 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
0e1fd3694e
commit
173d6cfe51
4 changed files with 7 additions and 17 deletions
|
@ -47,12 +47,11 @@ CPUX86State *cpu_x86_init(void)
|
|||
CPUX86State *env;
|
||||
static int inited;
|
||||
|
||||
cpu_exec_init();
|
||||
|
||||
env = malloc(sizeof(CPUX86State));
|
||||
env = qemu_mallocz(sizeof(CPUX86State));
|
||||
if (!env)
|
||||
return NULL;
|
||||
memset(env, 0, sizeof(CPUX86State));
|
||||
cpu_exec_init(env);
|
||||
|
||||
/* init various static tables */
|
||||
if (!inited) {
|
||||
inited = 1;
|
||||
|
@ -135,7 +134,6 @@ CPUX86State *cpu_x86_init(void)
|
|||
env->cpuid_features |= CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA;
|
||||
#endif
|
||||
}
|
||||
cpu_single_env = env;
|
||||
cpu_reset(env);
|
||||
#ifdef USE_KQEMU
|
||||
kqemu_init(env);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue