mirror of
https://github.com/mii443/qemu.git
synced 2025-08-31 03:19:27 +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:
@ -345,7 +345,7 @@ static int grlib_irqmp_init(SysBusDevice *dev)
|
||||
grlib_irqmp_write,
|
||||
irqmp, DEVICE_NATIVE_ENDIAN);
|
||||
|
||||
irqmp->state = qemu_mallocz(sizeof *irqmp->state);
|
||||
irqmp->state = g_malloc0(sizeof *irqmp->state);
|
||||
|
||||
if (irqmp_regs < 0) {
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user