Revision 33dd2983 hw/mips_fulong2e.c
b/hw/mips_fulong2e.c | ||
---|---|---|
256 | 256 |
const char *initrd_filename, const char *cpu_model) |
257 | 257 |
{ |
258 | 258 |
char *filename; |
259 |
char buf[1024]; |
|
260 | 259 |
unsigned long ram_offset, bios_offset; |
261 | 260 |
unsigned long bios_size; |
262 | 261 |
int64_t kernel_entry; |
... | ... | |
311 | 310 |
kernel_entry = load_kernel (env); |
312 | 311 |
write_bootloader(env, qemu_get_ram_ptr(bios_offset), kernel_entry); |
313 | 312 |
} else { |
314 |
if (bios_name == NULL) {
|
|
315 |
bios_name = FULONG_BIOSNAME;
|
|
313 |
if (bios_name == NULL) {
|
|
314 |
bios_name = FULONG_BIOSNAME;
|
|
316 | 315 |
} |
317 | 316 |
filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name); |
318 | 317 |
if (filename) { |
... | ... | |
323 | 322 |
bios_size = -1; |
324 | 323 |
} |
325 | 324 |
|
326 |
if ((bios_size < 0 || bios_size > BIOS_SIZE) && !kernel_filename) {
|
|
327 |
fprintf(stderr, "qemu: Could not load MIPS bios '%s'\n", buf);
|
|
325 |
if ((bios_size < 0 || bios_size > BIOS_SIZE) && !kernel_filename) {
|
|
326 |
fprintf(stderr, "qemu: Could not load MIPS bios '%s'\n", bios_name);
|
|
328 | 327 |
exit(1); |
329 |
}
|
|
328 |
}
|
|
330 | 329 |
} |
331 | 330 |
|
332 | 331 |
/* Init internal devices */ |
Also available in: Unified diff