mirror of
https://github.com/mii443/qemu.git
synced 2025-08-28 18:09:35 +00:00
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
@ -198,7 +198,7 @@ static int xilinx_timer_init(SysBusDevice *dev)
|
||||
sysbus_init_irq(dev, &t->irq);
|
||||
|
||||
/* Init all the ptimers. */
|
||||
t->timers = qemu_mallocz(sizeof t->timers[0] * t->nr_timers);
|
||||
t->timers = g_malloc0(sizeof t->timers[0] * t->nr_timers);
|
||||
for (i = 0; i < t->nr_timers; i++) {
|
||||
struct xlx_timer *xt = &t->timers[i];
|
||||
|
||||
|
Reference in New Issue
Block a user