Revision 7267c094 target-m68k/helper.c
b/target-m68k/helper.c | ||
---|---|---|
172 | 172 |
CPUM68KState *env; |
173 | 173 |
static int inited; |
174 | 174 |
|
175 |
env = qemu_mallocz(sizeof(CPUM68KState));
|
|
175 |
env = g_malloc0(sizeof(CPUM68KState));
|
|
176 | 176 |
cpu_exec_init(env); |
177 | 177 |
if (!inited) { |
178 | 178 |
inited = 1; |
... | ... | |
193 | 193 |
|
194 | 194 |
void cpu_m68k_close(CPUM68KState *env) |
195 | 195 |
{ |
196 |
qemu_free(env);
|
|
196 |
g_free(env);
|
|
197 | 197 |
} |
198 | 198 |
|
199 | 199 |
void cpu_m68k_flush_flags(CPUM68KState *env, int cc_op) |
Also available in: Unified diff