mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +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:
@@ -202,7 +202,7 @@ qemu_irq *heathrow_pic_init(MemoryRegion **pmem,
|
||||
{
|
||||
HeathrowPICS *s;
|
||||
|
||||
s = qemu_mallocz(sizeof(HeathrowPICS));
|
||||
s = g_malloc0(sizeof(HeathrowPICS));
|
||||
/* only 1 CPU */
|
||||
s->irqs = irqs[0];
|
||||
memory_region_init_io(&s->mem, &heathrow_pic_ops, s,
|
||||
|
||||
Reference in New Issue
Block a user