mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-06 06:27:41 -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
|
|
@ -433,7 +433,7 @@ static MaltaFPGAState *malta_fpga_init(target_phys_addr_t base, qemu_irq uart_ir
|
|||
MaltaFPGAState *s;
|
||||
int malta;
|
||||
|
||||
s = (MaltaFPGAState *)qemu_mallocz(sizeof(MaltaFPGAState));
|
||||
s = (MaltaFPGAState *)g_malloc0(sizeof(MaltaFPGAState));
|
||||
|
||||
malta = cpu_register_io_memory(malta_fpga_read,
|
||||
malta_fpga_write, s,
|
||||
|
|
@ -709,7 +709,7 @@ static int64_t load_kernel (void)
|
|||
|
||||
/* Setup prom parameters. */
|
||||
prom_size = ENVP_NB_ENTRIES * (sizeof(int32_t) + ENVP_ENTRY_SIZE);
|
||||
prom_buf = qemu_malloc(prom_size);
|
||||
prom_buf = g_malloc(prom_size);
|
||||
|
||||
prom_set(prom_buf, prom_index++, "%s", loaderparams.kernel_filename);
|
||||
if (initrd_size > 0) {
|
||||
|
|
@ -863,7 +863,7 @@ void mips_malta_init (ram_addr_t ram_size,
|
|||
if (filename) {
|
||||
bios_size = load_image_targphys(filename, 0x1fc00000LL,
|
||||
BIOS_SIZE);
|
||||
qemu_free(filename);
|
||||
g_free(filename);
|
||||
} else {
|
||||
bios_size = -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue