Revision 7267c094 hw/mcf5208.c

b/hw/mcf5208.c
185 185
    cpu_register_physical_memory(0xfc0a8000, 0x00004000, iomemtype);
186 186
    /* Timers.  */
187 187
    for (i = 0; i < 2; i++) {
188
        s = (m5208_timer_state *)qemu_mallocz(sizeof(m5208_timer_state));
188
        s = (m5208_timer_state *)g_malloc0(sizeof(m5208_timer_state));
189 189
        bh = qemu_bh_new(m5208_timer_trigger, s);
190 190
        s->timer = ptimer_init(bh);
191 191
        iomemtype = cpu_register_io_memory(m5208_timer_readfn,

Also available in: Unified diff