qemu-e2k/hw/arm
Peter Maydell da0af40dd7 target-arm: Load ELF images with the correct machine type for CPU
When trying to load an ELF file specified via -kernel, we need to
pass load_elf() the ELF machine type corresponding to the CPU we're
booting with, not the one corresponding to the softmmu binary
we happen to be running. (The two are different in the case of
loading a 32-bit ARM ELF file into a 32 bit CPU being emulated
by qemu-system aarch64.) This was causing us to incorrectly fail
to load ELF images in this situation.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Message-id: 1395427476-25546-1-git-send-email-peter.maydell@linaro.org
2014-03-24 16:41:10 +00:00
..
allwinner-a10.c hw/arm/allwinner-a10: initialize EMAC 2014-02-08 14:50:48 +00:00
armv7m.c armv7m: Don't enforce use of kernel for qtest 2013-11-05 17:47:29 +01:00
boot.c target-arm: Load ELF images with the correct machine type for CPU 2014-03-24 16:41:10 +00:00
collie.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
cubieboard.c hw/arm/allwinner-a10: initialize EMAC 2014-02-08 14:50:48 +00:00
digic_boards.c hw/arm/digic: add NOR ROM support 2013-12-17 20:12:51 +00:00
digic.c hw/arm/digic: add UART support 2013-12-17 20:12:51 +00:00
exynos4_boards.c exynos4_boards: Silence lack of -smp 2 warning for qtest 2013-11-05 17:47:29 +01:00
exynos4210.c exynos4210: Set reset-cbar property of Cortex-A9 CPUs 2014-03-17 16:31:46 +00:00
gumstix.c gumstix: Don't enforce use of -pflash for qtest 2013-11-05 17:47:28 +01:00
highbank.c exec: Make stl_phys_notdirty input an AddressSpace 2014-02-11 22:57:24 +10:00
integratorcp.c integrator/cp: add support for REFCNT register 2013-12-10 13:24:51 +00:00
kzm.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
mainstone.c mainstone: Fix duplicate array values for key 'space' 2014-01-01 18:03:55 +04:00
Makefile.objs hw/arm: add cubieboard support 2013-12-17 20:12:51 +00:00
musicpal.c hw/arm/musicpal: Avoid shifting left into sign bit 2014-03-10 14:56:30 +00:00
nseries.c i2c: Rename i2c_bus to I2CBus 2014-02-14 16:22:31 +01:00
omap1.c hw/arm/omap1.c: Avoid shifting left into sign bit 2014-03-10 14:56:29 +00:00
omap2.c
omap_sx1.c omap_sx1: Don't enforce use of kernel or flash for qtest 2013-11-05 17:47:29 +01:00
palm.c palm: Don't enforce loading ROM or kernel for qtest 2013-11-05 17:47:29 +01:00
pxa2xx_gpio.c pxa2xx: Don't shift into sign bit 2014-03-10 14:56:29 +00:00
pxa2xx_pic.c pxa2xx: Don't shift into sign bit 2014-03-10 14:56:29 +00:00
pxa2xx.c pxa2xx: Don't shift into sign bit 2014-03-10 14:56:29 +00:00
realview.c realview-pbx-a9: Set reset-cbar property for CPUs 2014-03-17 16:31:45 +00:00
spitz.c ssi: Convert legacy SSI_SLAVE -> DEVICE casts 2014-03-12 20:13:02 +01:00
stellaris.c i2c: Rename i2c_bus to I2CBus 2014-02-14 16:22:31 +01:00
strongarm.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
strongarm.h
tosa.c tosa: QOM'ify DAC 2014-02-14 16:22:32 +01:00
versatilepb.c i2c: Rename i2c_bus to I2CBus 2014-02-14 16:22:31 +01:00
vexpress.c vexpress: Set reset-cbar property for CPUs 2014-03-17 16:31:45 +00:00
virt.c virt: Set reset-cbar on CPUs 2014-03-17 16:31:46 +00:00
xilinx_zynq.c ZYNQ: Implement board MIDR control for Zynq 2014-01-31 14:47:33 +00:00
z2.c z2: QOM'ify AER915 2014-02-14 16:22:32 +01:00