diff options
author | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-03 01:04:20 +0000 |
---|---|---|
committer | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-03 01:04:20 +0000 |
commit | 217fae2d6be868d80c587639d82ed9b1028913bb (patch) | |
tree | 49a49bb16b41761c38f3dd95e62fb796a81752e9 /hw | |
parent | 0bd5f4ce3b5c95cbcddef6c14776bdb950070c3f (diff) |
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
Diffstat (limited to 'hw')
-rw-r--r-- | hw/ppc405_boards.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/ppc405_boards.c b/hw/ppc405_boards.c index 8f82ea9e1a..ebf160cb75 100644 --- a/hw/ppc405_boards.c +++ b/hw/ppc405_boards.c @@ -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 |