Revision 1724f049 hw/mips_r4k.c
b/hw/mips_r4k.c | ||
---|---|---|
198 | 198 |
((unsigned int)ram_size / (1 << 20))); |
199 | 199 |
exit(1); |
200 | 200 |
} |
201 |
ram_offset = qemu_ram_alloc(ram_size); |
|
201 |
ram_offset = qemu_ram_alloc(NULL, "mips_r4k.ram", ram_size);
|
|
202 | 202 |
|
203 | 203 |
cpu_register_physical_memory(0, ram_size, ram_offset | IO_MEM_RAM); |
204 | 204 |
|
... | ... | |
226 | 226 |
be = 0; |
227 | 227 |
#endif |
228 | 228 |
if ((bios_size > 0) && (bios_size <= BIOS_SIZE)) { |
229 |
bios_offset = qemu_ram_alloc(BIOS_SIZE); |
|
229 |
bios_offset = qemu_ram_alloc(NULL, "mips_r4k.bios", BIOS_SIZE);
|
|
230 | 230 |
cpu_register_physical_memory(0x1fc00000, BIOS_SIZE, |
231 | 231 |
bios_offset | IO_MEM_ROM); |
232 | 232 |
|
233 | 233 |
load_image_targphys(filename, 0x1fc00000, BIOS_SIZE); |
234 | 234 |
} else if ((dinfo = drive_get(IF_PFLASH, 0, 0)) != NULL) { |
235 | 235 |
uint32_t mips_rom = 0x00400000; |
236 |
bios_offset = qemu_ram_alloc(mips_rom); |
|
236 |
bios_offset = qemu_ram_alloc(NULL, "mips_r4k.bios", mips_rom);
|
|
237 | 237 |
if (!pflash_cfi01_register(0x1fc00000, bios_offset, |
238 | 238 |
dinfo->bdrv, sector_len, |
239 | 239 |
mips_rom / sector_len, |
Also available in: Unified diff