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:
@@ -1901,7 +1901,7 @@ static int e100_nic_init(PCIDevice *pci_dev)
|
||||
|
||||
qemu_register_reset(nic_reset, s);
|
||||
|
||||
s->vmstate = qemu_malloc(sizeof(vmstate_eepro100));
|
||||
s->vmstate = g_malloc(sizeof(vmstate_eepro100));
|
||||
memcpy(s->vmstate, &vmstate_eepro100, sizeof(vmstate_eepro100));
|
||||
s->vmstate->name = s->nic->nc.model;
|
||||
vmstate_register(&pci_dev->qdev, -1, s->vmstate, s);
|
||||
|
||||
Reference in New Issue
Block a user