mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
moxie: fix load_elf() usage
At the moment in the case of error, load_elf() returns -1 so load_kernel() will not signal error at all. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
133e70ee88
commit
6a2331d12e
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ static void load_kernel(MoxieCPU *cpu, LoaderParams *loader_params)
|
|||
&entry, &kernel_low, &kernel_high, 1,
|
||||
ELF_MACHINE, 0);
|
||||
|
||||
if (!kernel_size) {
|
||||
if (kernel_size <= 0) {
|
||||
fprintf(stderr, "qemu: could not load kernel '%s'\n",
|
||||
loader_params->kernel_filename);
|
||||
exit(1);
|
||||
|
|
Loading…
Reference in a new issue