qemu-e2k/hw/arm
Sylvain Garrigues b4850e5ae9 hw/arm/boot: always clear r0 when booting kernels
The 32-bit ARM Linux kernel booting ABI requires that r0 is 0
when calling the kernel image. A bug in commit 10b8ec73e6
meant that for boards which use the write_board_setup hook (which
means "highbank", "midway", "raspi2" and "xilinx-zynq-a9") we
were incorrectly skipping the "clear r0" instruction in the
mini-bootloader. Use the right offset in the "add lr, pc, #n"
instruction so that we return from the board-setup code to the
correct place.

Signed-off-by: Sylvain Garrigues <sylvain@sylvaingarrigues.com>
[PMM: Expanded commit message]
Cc: qemu-stable@nongnu.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2016-04-21 12:10:17 +01:00
..
allwinner-a10.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
armv7m.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
ast2400.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
bcm2835_peripherals.c
bcm2836.c hw/arm/bcm2836: Wire up CPU timer interrupts correctly 2016-04-04 17:33:51 +01:00
boot.c hw/arm/boot: always clear r0 when booting kernels 2016-04-21 12:10:17 +01:00
collie.c
cubieboard.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
digic_boards.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
digic.c
exynos4_boards.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
exynos4210.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
fsl-imx25.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
fsl-imx31.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
gumstix.c
highbank.c
imx25_pdk.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
integratorcp.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
kzm.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
mainstone.c
Makefile.objs
musicpal.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
netduino2.c
nseries.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
omap1.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
omap2.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
omap_sx1.c
palm.c
palmetto-bmc.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
pxa2xx_gpio.c
pxa2xx_pic.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
pxa2xx.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
raspi.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
realview.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
spitz.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
stellaris.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
stm32f205_soc.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
strongarm.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
strongarm.h
sysbus-fdt.c
tosa.c
versatilepb.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
vexpress.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
virt-acpi-build.c
virt.c ARM: Virt: Use gpio_key for power button 2016-03-30 17:27:22 +01:00
xilinx_zynq.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
xlnx-ep108.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
xlnx-zynqmp.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
z2.c