Revision 7267c094 hw/r2d.c
b/hw/r2d.c | ||
---|---|---|
184 | 184 |
int iomemtype; |
185 | 185 |
r2d_fpga_t *s; |
186 | 186 |
|
187 |
s = qemu_mallocz(sizeof(r2d_fpga_t));
|
|
187 |
s = g_malloc0(sizeof(r2d_fpga_t));
|
|
188 | 188 |
|
189 | 189 |
s->irl = irl; |
190 | 190 |
|
... | ... | |
244 | 244 |
fprintf(stderr, "Unable to find CPU definition\n"); |
245 | 245 |
exit(1); |
246 | 246 |
} |
247 |
reset_info = qemu_mallocz(sizeof(ResetData));
|
|
247 |
reset_info = g_malloc0(sizeof(ResetData));
|
|
248 | 248 |
reset_info->env = env; |
249 | 249 |
reset_info->vector = env->pc; |
250 | 250 |
qemu_register_reset(main_cpu_reset, reset_info); |
Also available in: Unified diff