mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07: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
|
|
@ -293,7 +293,7 @@ qemu_irq *ppcuic_init (CPUState *env, qemu_irq *irqs,
|
|||
ppcuic_t *uic;
|
||||
int i;
|
||||
|
||||
uic = qemu_mallocz(sizeof(ppcuic_t));
|
||||
uic = g_malloc0(sizeof(ppcuic_t));
|
||||
uic->dcr_base = dcr_base;
|
||||
uic->irqs = irqs;
|
||||
if (has_vr)
|
||||
|
|
@ -627,7 +627,7 @@ void ppc4xx_sdram_init (CPUState *env, qemu_irq irq, int nbanks,
|
|||
{
|
||||
ppc4xx_sdram_t *sdram;
|
||||
|
||||
sdram = qemu_mallocz(sizeof(ppc4xx_sdram_t));
|
||||
sdram = g_malloc0(sizeof(ppc4xx_sdram_t));
|
||||
sdram->irq = irq;
|
||||
sdram->nbanks = nbanks;
|
||||
memset(sdram->ram_bases, 0, 4 * sizeof(target_phys_addr_t));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue