diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-21 23:32:20 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-21 23:32:20 +0000 |
commit | 173d6cfe5129301a3a8f2570223aaa47a815f343 (patch) | |
tree | 383d89a9f3d4189748a5108b62c1eab89068a056 /target-ppc/translate_init.c | |
parent | 0e1fd3694e5386e791d86fb6bd7ead4d0c86bd9a (diff) |
cpu_exec_init() change
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1643 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/translate_init.c')
-rw-r--r-- | target-ppc/translate_init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 624527d5f9..012c34f73d 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -1081,11 +1081,10 @@ CPUPPCState *cpu_ppc_init(void) { CPUPPCState *env; - cpu_exec_init(); - env = qemu_mallocz(sizeof(CPUPPCState)); if (!env) return NULL; + cpu_exec_init(env); tlb_flush(env, 1); #if defined (DO_SINGLE_STEP) && 0 /* Single step trace mode */ @@ -1101,7 +1100,6 @@ CPUPPCState *cpu_ppc_init(void) #endif do_compute_hflags(env); env->reserve = -1; - cpu_single_env = env; return env; } |