* [Qemu-devel] [5848] Allocate cleared memory for cpu state.
@ 2008-12-01 14:29 Paul Brook
0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2008-12-01 14:29 UTC (permalink / raw)
To: qemu-devel
Revision: 5848
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5848
Author: pbrook
Date: 2008-12-01 14:29:13 +0000 (Mon, 01 Dec 2008)
Log Message:
-----------
Allocate cleared memory for cpu state.
Modified Paths:
--------------
trunk/target-m68k/helper.c
Modified: trunk/target-m68k/helper.c
===================================================================
--- trunk/target-m68k/helper.c 2008-12-01 11:57:21 UTC (rev 5847)
+++ trunk/target-m68k/helper.c 2008-12-01 14:29:13 UTC (rev 5848)
@@ -160,7 +160,7 @@
CPUM68KState *env;
static int inited;
- env = malloc(sizeof(CPUM68KState));
+ env = qemu_mallocz(sizeof(CPUM68KState));
if (!env)
return NULL;
cpu_exec_init(env);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-01 14:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-01 14:29 [Qemu-devel] [5848] Allocate cleared memory for cpu state Paul Brook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).