diff options
author | 2008-12-01 14:29:13 +0000 | |
---|---|---|
committer | 2008-12-01 14:29:13 +0000 | |
commit | 6ad1d22b15c0a091edb1d8efc983c1d75f74ef45 (patch) | |
tree | 77d5ccafbc898b9f23add9d5af792f19b3bd7c99 /target-m68k | |
parent | arm: Don't potentially overwrite input registers in add2, sub2. (diff) | |
download | qemu-kvm-6ad1d22b15c0a091edb1d8efc983c1d75f74ef45.tar.gz qemu-kvm-6ad1d22b15c0a091edb1d8efc983c1d75f74ef45.tar.bz2 qemu-kvm-6ad1d22b15c0a091edb1d8efc983c1d75f74ef45.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-m68k/helper.c b/target-m68k/helper.c index 405cb9af4..045687f63 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); |