mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
dbf3c4b4ba
commit
093209cd68
4 changed files with 18 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue