mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13: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
|
@ -696,8 +696,8 @@ static int omap2_gpio_init(SysBusDevice *dev)
|
|||
} else {
|
||||
s->modulecount = 6;
|
||||
}
|
||||
s->modules = qemu_mallocz(s->modulecount * sizeof(struct omap2_gpio_s));
|
||||
s->handler = qemu_mallocz(s->modulecount * 32 * sizeof(qemu_irq));
|
||||
s->modules = g_malloc0(s->modulecount * sizeof(struct omap2_gpio_s));
|
||||
s->handler = g_malloc0(s->modulecount * 32 * sizeof(qemu_irq));
|
||||
qdev_init_gpio_in(&dev->qdev, omap2_gpio_set, s->modulecount * 32);
|
||||
qdev_init_gpio_out(&dev->qdev, s->handler, s->modulecount * 32);
|
||||
for (i = 0; i < s->modulecount; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue