diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-21 22:32:19 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-21 22:32:19 +0000 |
commit | 331ad6f444f288093a174cfdbe23985f954cfad3 (patch) | |
tree | 48d99a683f9a3b5e148c77763b3bffb579fe0e99 /hw | |
parent | 9c1de6125e49460aa1e508a837159a2087762d18 (diff) |
Allow arbitrary MIPS BIOS sizes between 0 and 4 MB, by Stefan Weil.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2446 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r-- | hw/mips_malta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/mips_malta.c b/hw/mips_malta.c index 97431b1e62..03db2f8a6c 100644 --- a/hw/mips_malta.c +++ b/hw/mips_malta.c @@ -533,7 +533,7 @@ void mips_malta_init (int ram_size, int vga_ram_size, int boot_device, } else { snprintf(buf, sizeof(buf), "%s/%s", bios_dir, BIOS_FILENAME); ret = load_image(buf, phys_ram_base + bios_offset); - if (ret != BIOS_SIZE) { + if (ret < 0 || ret > BIOS_SIZE) { fprintf(stderr, "qemu: Warning, could not load MIPS bios '%s'\n", buf); exit(1); |