mirror of
https://github.com/mii443/qemu.git
synced 2025-08-25 00:19:36 +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:
@ -1239,7 +1239,7 @@ void omap_clk_init(struct omap_mpu_state_s *mpu)
|
||||
for (i = onchip_clks, count = 0; *i; i ++)
|
||||
if ((*i)->flags & flag)
|
||||
count ++;
|
||||
mpu->clks = (struct clk *) qemu_mallocz(sizeof(struct clk) * (count + 1));
|
||||
mpu->clks = (struct clk *) g_malloc0(sizeof(struct clk) * (count + 1));
|
||||
for (i = onchip_clks, j = mpu->clks; *i; i ++)
|
||||
if ((*i)->flags & flag) {
|
||||
memcpy(j, *i, sizeof(struct clk));
|
||||
|
Reference in New Issue
Block a user