mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -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
|
@ -797,7 +797,7 @@ SerialState *serial_init(int base, qemu_irq irq, int baudbase,
|
|||
{
|
||||
SerialState *s;
|
||||
|
||||
s = qemu_mallocz(sizeof(SerialState));
|
||||
s = g_malloc0(sizeof(SerialState));
|
||||
|
||||
s->irq = irq;
|
||||
s->baudbase = baudbase;
|
||||
|
@ -931,7 +931,7 @@ SerialState *serial_mm_init (target_phys_addr_t base, int it_shift,
|
|||
SerialState *s;
|
||||
int s_io_memory;
|
||||
|
||||
s = qemu_mallocz(sizeof(SerialState));
|
||||
s = g_malloc0(sizeof(SerialState));
|
||||
|
||||
s->it_shift = it_shift;
|
||||
s->irq = irq;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue