projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
133e70e
)
moxie: fix load_elf() usage
author
Alexey Kardashevskiy
<aik@ozlabs.ru>
Tue, 4 Feb 2014 04:04:17 +0000
(15:04 +1100)
committer
Alexander Graf
<agraf@suse.de>
Wed, 5 Mar 2014 02:06:46 +0000
(
03:06
+0100)
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>
hw/moxie/moxiesim.c
patch
|
blob
|
history
diff --git
a/hw/moxie/moxiesim.c
b/hw/moxie/moxiesim.c
index
ef4f3a8
..
a87ca6d
100644
(file)
--- a/
hw/moxie/moxiesim.c
+++ b/
hw/moxie/moxiesim.c
@@
-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);