diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-09-18 05:53:14 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-09-18 05:53:14 +0000 |
commit | 093209cd681fe9fb65bd8a1c2ff711b8168bbfcd (patch) | |
tree | 1c5c53a93df58254c9b70f9ec910252f3414e75b /hw/mips_fulong2e.c | |
parent | dbf3c4b4baceb91eb64d09f787cbe92d65188813 (diff) |
Check for errors during BIOS or kernel load
Because of the use of unsigned types, possible errors during
BIOS or kernel load were ignored.
Fix by using a signed type.
This also avoids some warnings with GCC flag -Wtype-limits.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/mips_fulong2e.c')
-rw-r--r-- | hw/mips_fulong2e.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c index cbe71567a8..ac82067acb 100644 --- a/hw/mips_fulong2e.c +++ b/hw/mips_fulong2e.c @@ -258,7 +258,7 @@ static void mips_fulong2e_init(ram_addr_t ram_size, const char *boot_device, { char *filename; unsigned long ram_offset, bios_offset; - unsigned long bios_size; + long bios_size; int64_t kernel_entry; qemu_irq *i8259; qemu_irq *cpu_exit_irq; |