mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06: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:
parent
14015304b6
commit
7267c0947d
357 changed files with 1672 additions and 1674 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue