Ppc: if not a uImage, try to load kernel as ELF
commiteda5d679ddcf9cac357debf2e8ff0d966849207a
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)
tree16a1aea4cc7a82075aa9201b5a684593dc623823
parent04f53baa534c69b0d8d9408c305e830bd0320aad
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>
hw/ppc440_bamboo.c