summaryrefslogtreecommitdiff
path: root/target-m68k
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-01 14:29:13 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-01 14:29:13 +0000
commit6ad1d22b15c0a091edb1d8efc983c1d75f74ef45 (patch)
tree77d5ccafbc898b9f23add9d5af792f19b3bd7c99 /target-m68k
parent0c9c3a9e3a5efd1871241e2cf1e2195b4243f92c (diff)
Allocate cleared memory for cpu state.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5848 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-m68k')
-rw-r--r--target-m68k/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-m68k/helper.c b/target-m68k/helper.c
index 405cb9af4e..045687f639 100644
--- a/target-m68k/helper.c
+++ b/target-m68k/helper.c
@@ -160,7 +160,7 @@ CPUM68KState *cpu_m68k_init(const char *cpu_model)
CPUM68KState *env;
static int inited;
- env = malloc(sizeof(CPUM68KState));
+ env = qemu_mallocz(sizeof(CPUM68KState));
if (!env)
return NULL;
cpu_exec_init(env);