]> git.proxmox.com Git - mirror_qemu.git/commit - hw/mips/mips_malta.c
hw/mips: load_elf_strerror to report kernel loading failure
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 26 Jul 2017 23:56:13 +0000 (01:56 +0200)
committerYongbok Kim <yongbok.kim@imgtec.com>
Fri, 28 Jul 2017 12:32:32 +0000 (13:32 +0100)
commit3ee3122c0d2614297890ded2017655fc2a139af6
tree95b1a1d320680952eed547fce98463543a2ac619
parent871a0f7ad2b9560c5f7d640125c5be95ca23ca7f
hw/mips: load_elf_strerror to report kernel loading failure

Emulated MIPS boards bail out with a simple "could not load kernel" when
a kernel could not be load, without specifying the underlying reason.
Fix that by calling load_elf_strerror.

At the same time use error_report to report the error instead of
fprintf.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
hw/mips/mips_fulong2e.c
hw/mips/mips_malta.c
hw/mips/mips_mipssim.c
hw/mips/mips_r4k.c