Revision 7267c094 hw/mips_malta.c
b/hw/mips_malta.c | ||
---|---|---|
433 | 433 |
MaltaFPGAState *s; |
434 | 434 |
int malta; |
435 | 435 |
|
436 |
s = (MaltaFPGAState *)qemu_mallocz(sizeof(MaltaFPGAState));
|
|
436 |
s = (MaltaFPGAState *)g_malloc0(sizeof(MaltaFPGAState));
|
|
437 | 437 |
|
438 | 438 |
malta = cpu_register_io_memory(malta_fpga_read, |
439 | 439 |
malta_fpga_write, s, |
... | ... | |
709 | 709 |
|
710 | 710 |
/* Setup prom parameters. */ |
711 | 711 |
prom_size = ENVP_NB_ENTRIES * (sizeof(int32_t) + ENVP_ENTRY_SIZE); |
712 |
prom_buf = qemu_malloc(prom_size);
|
|
712 |
prom_buf = g_malloc(prom_size);
|
|
713 | 713 |
|
714 | 714 |
prom_set(prom_buf, prom_index++, "%s", loaderparams.kernel_filename); |
715 | 715 |
if (initrd_size > 0) { |
... | ... | |
863 | 863 |
if (filename) { |
864 | 864 |
bios_size = load_image_targphys(filename, 0x1fc00000LL, |
865 | 865 |
BIOS_SIZE); |
866 |
qemu_free(filename);
|
|
866 |
g_free(filename);
|
|
867 | 867 |
} else { |
868 | 868 |
bios_size = -1; |
869 | 869 |
} |
Also available in: Unified diff