mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23: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
|
@ -102,11 +102,11 @@ static void vga_mm_init(ISAVGAMMState *s, target_phys_addr_t vram_base,
|
|||
MemoryRegion *s_ioport_ctrl, *vga_io_memory;
|
||||
|
||||
s->it_shift = it_shift;
|
||||
s_ioport_ctrl = qemu_malloc(sizeof(*s_ioport_ctrl));
|
||||
s_ioport_ctrl = g_malloc(sizeof(*s_ioport_ctrl));
|
||||
memory_region_init_io(s_ioport_ctrl, &vga_mm_ctrl_ops, s,
|
||||
"vga-mm-ctrl", 0x100000);
|
||||
|
||||
vga_io_memory = qemu_malloc(sizeof(*vga_io_memory));
|
||||
vga_io_memory = g_malloc(sizeof(*vga_io_memory));
|
||||
/* XXX: endianness? */
|
||||
memory_region_init_io(vga_io_memory, &vga_mem_ops, &s->vga,
|
||||
"vga-mem", 0x20000);
|
||||
|
@ -125,7 +125,7 @@ int isa_vga_mm_init(target_phys_addr_t vram_base,
|
|||
{
|
||||
ISAVGAMMState *s;
|
||||
|
||||
s = qemu_mallocz(sizeof(*s));
|
||||
s = g_malloc0(sizeof(*s));
|
||||
|
||||
vga_common_init(&s->vga, VGA_RAM_SIZE);
|
||||
vga_mm_init(s, vram_base, ctrl_base, it_shift);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue