Revision 7267c094 hw/slavio_timer.c
b/hw/slavio_timer.c | ||
---|---|---|
381 | 381 |
TimerContext *tc; |
382 | 382 |
|
383 | 383 |
for (i = 0; i <= MAX_CPUS; i++) { |
384 |
tc = qemu_mallocz(sizeof(TimerContext));
|
|
384 |
tc = g_malloc0(sizeof(TimerContext));
|
|
385 | 385 |
tc->s = s; |
386 | 386 |
tc->timer_index = i; |
387 | 387 |
|
Also available in: Unified diff