kvm: qemu: ppc: if not a uImage, try to load kernel as ELF
commit434a1ab431e574351615e5460227ed1821269770
authorHollis Blanchard <hollisb@us.ibm.com>
Tue, 28 Oct 2008 15:52:36 +0000 (28 16:52 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 29 Oct 2008 12:44:42 +0000 (29 14:44 +0200)
treed386e564934840bf4a6c5256fddd7adcd44d428b
parent8762b884886101a4c74fc0abf63bf3697a214d7f
kvm: qemu: ppc: if not a uImage, try to load kernel as ELF

This allows qemu to load "bare metal" ELF kernels, useful for standalone
benchmarks and testcases.

We could/should also load the specified file as a flat binary, if both uImage
and ELF loaders fail. (See hw/arm_boot.c.)

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu/hw/ppc440_bamboo.c