1081 |
{ |
{ |
1082 |
CPUPPCState *env; |
CPUPPCState *env; |
1083 |
|
|
|
cpu_exec_init(); |
|
|
|
|
1084 |
env = qemu_mallocz(sizeof(CPUPPCState)); |
env = qemu_mallocz(sizeof(CPUPPCState)); |
1085 |
if (!env) |
if (!env) |
1086 |
return NULL; |
return NULL; |
1087 |
|
cpu_exec_init(env); |
1088 |
tlb_flush(env, 1); |
tlb_flush(env, 1); |
1089 |
#if defined (DO_SINGLE_STEP) && 0 |
#if defined (DO_SINGLE_STEP) && 0 |
1090 |
/* Single step trace mode */ |
/* Single step trace mode */ |
1100 |
#endif |
#endif |
1101 |
do_compute_hflags(env); |
do_compute_hflags(env); |
1102 |
env->reserve = -1; |
env->reserve = -1; |
|
cpu_single_env = env; |
|
1103 |
return env; |
return env; |
1104 |
} |
} |
1105 |
|
|