mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue