qemu-e2k/hw/arm
Peter Maydell a113aef998 hw/arm/mps2-tz: Get armv7m_load_kernel() size argument from RAMInfo
The armv7m_load_kernel() function takes a mem_size argument which it
expects to be the size of the memory region at guest address 0.  (It
uses this argument only as a limit on how large a raw image file it
can load at address zero).

Instead of hardcoding this value, find the RAMInfo corresponding to
the 0 address and extract its size.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210215115138.20465-20-peter.maydell@linaro.org
2021-03-06 13:30:39 +00:00
..
allwinner-a10.c
allwinner-h3.c
armsse.c
armv7m.c
aspeed_ast2600.c arm: Update infocenter.arm.com URLs 2021-02-11 11:50:14 +00:00
aspeed_soc.c
aspeed.c
bcm2835_peripherals.c
bcm2836.c
boot.c
collie.c
cubieboard.c
digic_boards.c hw/arm: Display CPU type in machine description 2021-02-03 10:15:51 +00:00
digic.c
exynos4_boards.c
exynos4210.c
fsl-imx6.c
fsl-imx6ul.c
fsl-imx7.c
fsl-imx25.c
fsl-imx31.c
gumstix.c
highbank.c
imx25_pdk.c
integratorcp.c
Kconfig hw/arm: Add I2C sensors and EEPROM for GSJ machine 2021-02-16 13:50:38 +00:00
kzm.c
mainstone.c
mcimx6ul-evk.c
mcimx7d-sabre.c
meson.build
microbit.c hw/arm: Display CPU type in machine description 2021-02-03 10:15:51 +00:00
mps2-tz.c hw/arm/mps2-tz: Get armv7m_load_kernel() size argument from RAMInfo 2021-03-06 13:30:39 +00:00
mps2.c hw/misc/mps2-scc: Support configurable number of OSCCLK values 2021-03-06 13:30:38 +00:00
msf2-soc.c
msf2-som.c
musca.c arm: Update infocenter.arm.com URLs 2021-02-11 11:50:14 +00:00
musicpal.c hw/arm/musicpal: Remove dead code for non-32-bit-RGB surfaces 2021-03-05 15:17:35 +00:00
netduino2.c hw/arm: Display CPU type in machine description 2021-02-03 10:15:51 +00:00
netduinoplus2.c hw/arm: Display CPU type in machine description 2021-02-03 10:15:51 +00:00
npcm7xx_boards.c hw/arm: Add I2C sensors and EEPROM for GSJ machine 2021-02-16 13:50:38 +00:00
npcm7xx.c hw/arm: Add npcm7xx emc model 2021-03-05 15:17:34 +00:00
nrf51_soc.c
nseries.c
omap1.c
omap2.c
omap_sx1.c
orangepi.c hw/arm: Display CPU type in machine description 2021-02-03 10:15:51 +00:00
palm.c
pxa2xx_gpio.c
pxa2xx_pic.c
pxa2xx.c
raspi.c
realview.c
sabrelite.c
sbsa-ref.c sbsa-ref: add 'max' to list of allowed cpus 2021-03-05 15:17:33 +00:00
smmu-common.c
smmu-internal.h
smmuv3-internal.h
smmuv3.c vhost: Unbreak SMMU and virtio-iommu on dev-iotlb support 2021-02-05 08:52:58 -05:00
spitz.c
stellaris.c hw/arm: Display CPU type in machine description 2021-02-03 10:15:51 +00:00
stm32f205_soc.c
stm32f405_soc.c
strongarm.c
strongarm.h
sysbus-fdt.c
tosa.c
trace-events
trace.h
versatilepb.c
vexpress.c
virt-acpi-build.c acpi: Permit OEM ID and OEM table ID fields to be changed 2021-02-05 08:52:59 -05:00
virt.c acpi: use constants as strncpy limit 2021-02-05 08:52:59 -05:00
xilinx_zynq.c
xlnx-versal-virt.c
xlnx-versal.c hw/arm: versal: Use nr_apu_cpus in favor of hard coding 2 2021-02-11 19:48:09 +00:00
xlnx-zcu102.c
xlnx-zynqmp.c hw/arm/xlnx-zynqmp: Remove obsolete 'has_rpu' property 2021-03-05 15:17:34 +00:00
z2.c