target-ppc: always load kernel to KERNEL_LOAD_ADDR
commit36bee1e3a4bce569e3f3ab4627e5a379a717bc48
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 26 Jan 2009 10:22:15 +0000 (26 10:22 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 26 Jan 2009 10:22:15 +0000 (26 10:22 +0000)
treeed3d0f40830db3a1f01cda7be610d8fb39bd59b7
parent947f5fcbde4836d22386bb83e6839322912979a6
target-ppc: always load kernel to KERNEL_LOAD_ADDR

Linux changed its physical address location in the elf header from
0xc0000000 to 0 on 2.6.25, causing later kernels to fail booting
with the -kernel option.

This patch assures that the lowest segment in the elf binary is loaded
to KERNEL_LOAD_ADDR, which is where the firmware expects it.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6437 c046a42c-6fe2-441c-8c8c-71466251a162
hw/ppc_oldworld.c