mirror of
https://github.com/mii443/qemu.git
synced 2025-12-07 13:08:31 +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:
@@ -605,7 +605,7 @@ static int stellaris_sys_init(uint32_t base, qemu_irq irq,
|
||||
int iomemtype;
|
||||
ssys_state *s;
|
||||
|
||||
s = (ssys_state *)qemu_mallocz(sizeof(ssys_state));
|
||||
s = (ssys_state *)g_malloc0(sizeof(ssys_state));
|
||||
s->irq = irq;
|
||||
s->board = board;
|
||||
/* Most devices come preprogrammed with a MAC address in the user data. */
|
||||
|
||||
Reference in New Issue
Block a user