aboutsummaryrefslogtreecommitdiff
path: root/target-arm/translate.c
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-arm/translate.c
parent0e1fd3694e5386e791d86fb6bd7ead4d0c86bd9a (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-arm/translate.c')
-rw-r--r--target-arm/translate.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/target-arm/translate.c b/target-arm/translate.c
index afb9b57c89..601db555aa 100644
--- a/target-arm/translate.c
+++ b/target-arm/translate.c
@@ -2199,13 +2199,10 @@ CPUARMState *cpu_arm_init(void)
{
CPUARMState *env;
- cpu_exec_init();
-
- env = malloc(sizeof(CPUARMState));
+ env = qemu_mallocz(sizeof(CPUARMState));
if (!env)
return NULL;
- memset(env, 0, sizeof(CPUARMState));
- cpu_single_env = env;
+ cpu_exec_init(env);
return env;
}