mirror of https://gitee.com/openkylin/qemu.git
Allocate cleared memory for cpu state.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5848 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
0c9c3a9e3a
commit
6ad1d22b15
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue