mips bios loading fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1913 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
d3079cd241
commit
1fc2244d87
@ -214,14 +214,10 @@ void mips_r4k_init (int ram_size, int vga_ram_size, int boot_device,
|
||||
run. */
|
||||
bios_offset = ram_size + vga_ram_size;
|
||||
snprintf(buf, sizeof(buf), "%s/%s", bios_dir, BIOS_FILENAME);
|
||||
printf("%s: load BIOS '%s' size %d\n", __func__, buf, BIOS_SIZE);
|
||||
ret = load_image(buf, phys_ram_base + bios_offset);
|
||||
if (ret == BIOS_SIZE) {
|
||||
cpu_register_physical_memory((uint32_t)(0x1fc00000),
|
||||
BIOS_SIZE, bios_offset | IO_MEM_ROM);
|
||||
env->PC = 0xBFC00000;
|
||||
if (!kernel_filename)
|
||||
return;
|
||||
} else {
|
||||
/* not fatal */
|
||||
fprintf(stderr, "qemu: Warning, could not load MIPS bios '%s'\n",
|
||||
|
Loading…
Reference in New Issue
Block a user