Fix PowerPC 405 BIOS instanciation: is a 32 bits only target.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3315 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
0bd5f4ce3b
commit
217fae2d6b
@ -226,8 +226,8 @@ static void ref405ep_init (int ram_size, int vga_ram_size, int boot_device,
|
||||
fl_idx, bios_size, bios_offset, -bios_size,
|
||||
bdrv_get_device_name(pflash_table[fl_idx]), fl_sectors);
|
||||
#endif
|
||||
pflash_register(-(bios_size), bios_offset, pflash_table[fl_idx],
|
||||
65536, fl_sectors, 2,
|
||||
pflash_register((uint32_t)(-bios_size), bios_offset,
|
||||
pflash_table[fl_idx], 65536, fl_sectors, 2,
|
||||
0x0001, 0x22DA, 0x0000, 0x0000);
|
||||
fl_idx++;
|
||||
} else
|
||||
@ -266,7 +266,7 @@ static void ref405ep_init (int ram_size, int vga_ram_size, int boot_device,
|
||||
memset(&bd, 0, sizeof(bd));
|
||||
bd.bi_memstart = 0x00000000;
|
||||
bd.bi_memsize = ram_size;
|
||||
bd.bi_flashstart = -(bios_size);
|
||||
bd.bi_flashstart = -bios_size;
|
||||
bd.bi_flashsize = -bios_size;
|
||||
bd.bi_flashoffset = 0;
|
||||
bd.bi_sramstart = 0xFFF00000;
|
||||
@ -539,8 +539,8 @@ static void taihu_405ep_init(int ram_size, int vga_ram_size, int boot_device,
|
||||
fl_idx, bios_size, bios_offset, -bios_size,
|
||||
bdrv_get_device_name(pflash_table[fl_idx]), fl_sectors);
|
||||
#endif
|
||||
pflash_register(-(bios_size), bios_offset, pflash_table[fl_idx],
|
||||
65536, fl_sectors, 4,
|
||||
pflash_register((uint32_t)(-bios_size), bios_offset,
|
||||
pflash_table[fl_idx], 65536, fl_sectors, 4,
|
||||
0x0001, 0x22DA, 0x0000, 0x0000);
|
||||
fl_idx++;
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user