aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/ppc405_boards.c10
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