mirror of
https://github.com/mii443/qemu.git
synced 2025-12-17 01:28:52 +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:
@@ -846,7 +846,7 @@ void* DBDMA_init (MemoryRegion **dbdma_mem)
|
||||
{
|
||||
DBDMAState *s;
|
||||
|
||||
s = qemu_mallocz(sizeof(DBDMAState));
|
||||
s = g_malloc0(sizeof(DBDMAState));
|
||||
|
||||
memory_region_init_io(&s->mem, &dbdma_ops, s, "dbdma", 0x1000);
|
||||
*dbdma_mem = &s->mem;
|
||||
|
||||
Reference in New Issue
Block a user