]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commit
hw/arm/boot: Set PC correctly when loading AArch64 ELF files
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Aug 2014 13:41:53 +0000 (14:41 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 6 Aug 2014 20:09:41 +0000 (15:09 -0500)
commite0efb023c0409b80e703e18352f7ad1c6268ce0c
treef6829ccaa4247ac6df074a9c5513cd4ee5fef2be
parentd56b0b85c86b18df4d29a86eeaaedff299fcf9a0
hw/arm/boot: Set PC correctly when loading AArch64 ELF files

The code in do_cpu_reset() correctly handled AArch64 CPUs
when running Linux kernels, but was missing code in the
branch of the if() that deals with loading ELF files.
Correctly jump to the ELF entry point on reset rather than
leaving the reset PC at zero.

Reported-by: Christopher Covington <cov@codeaurora.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Christopher Covington <cov@codeaurora.org>
Cc: qemu-stable@nongnu.org
(cherry picked from commit a9047ec3f6ab56295cba5b07e0d46cded9e2a7ff)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/arm/boot.c