qemu-cr16/hw/arm
Vishal Chourasia a9c608904f hw/core/loader: capture Error from load_image_targphys
Add Error **errp parameter to load_image_targphys(),
load_image_targphys_as(), and get_image_size() to enable better
error reporting when image loading fails.

Pass NULL for errp in all existing call sites to maintain current
behavior. No functional change intended in this patch.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Aditya Gupta <adityag@linux.ibm.com>
Tested-by: Aditya Gupta <adityag@linux.ibm.com>
Signed-off-by: Vishal Chourasia <vishalc@linux.ibm.com>
Message-ID: <20251024130556.1942835-6-vishalc@linux.ibm.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2025-10-28 08:19:18 +01:00
..
allwinner-a10.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
allwinner-h3.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
allwinner-r40.c qemu: Declare all load/store helper in 'qemu/bswap.h' 2025-07-15 02:56:39 -04:00
armsse.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
armv7m.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
aspeed.c hw/arm/aspeed: ast2600-evb: Use w25q512jv flash model 2025-10-22 08:14:09 +02:00
aspeed_ast10x0.c hw/arm/aspeed: Remove the aspeed_soc_get_irq and class get_irq hook 2025-10-13 14:37:55 +02:00
aspeed_ast27x0-fc.c hw/arm/aspeed: Remove ast2700fc self-aliasing 2025-10-22 08:14:09 +02:00
aspeed_ast27x0-ssp.c hw/arm/ast27x0: Share single UART set across PSP, SSP, and TSP 2025-10-22 08:14:08 +02:00
aspeed_ast27x0-tsp.c hw/arm/ast27x0: Share single UART set across PSP, SSP, and TSP 2025-10-22 08:14:08 +02:00
aspeed_ast27x0.c hw/arm/aspeed: Remove the aspeed_soc_get_irq and class get_irq hook 2025-10-13 14:37:55 +02:00
aspeed_ast2400.c hw/arm/aspeed: Remove the aspeed_soc_get_irq and class get_irq hook 2025-10-13 14:37:55 +02:00
aspeed_ast2600.c hw/arm/aspeed: Remove the aspeed_soc_get_irq and class get_irq hook 2025-10-13 14:37:55 +02:00
aspeed_coprocessor_common.c hw/arm/ast27x0: Share single UART set across PSP, SSP, and TSP 2025-10-22 08:14:08 +02:00
aspeed_eeprom.c hw/arm/aspeed: Add GB200 BMC target 2025-07-03 17:36:45 +02:00
aspeed_eeprom.h hw/arm/aspeed: Add GB200 BMC target 2025-07-03 17:36:45 +02:00
aspeed_soc_common.c hw/arm/aspeed: Remove the aspeed_soc_get_irq and class get_irq hook 2025-10-13 14:37:55 +02:00
b-l475e-iot01a.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
bananapi_m2u.c include/system: Move exec/address-spaces.h to system/address-spaces.h 2025-04-23 14:08:21 -07:00
bcm2835_peripherals.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
bcm2836.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
bcm2838.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
bcm2838_peripherals.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
boot.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
collie.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
cubieboard.c hw/boards: Rename no_sdcard -> auto_create_sdcard 2025-02-16 14:25:08 +01:00
digic.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
digic_boards.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
exynos4_boards.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
exynos4210.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
fby35.c hw/arm/aspeed: Remove AspeedSoCState dependency from aspeed_soc_uart_set_chr() API 2025-10-13 14:37:55 +02:00
fsl-imx6.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
fsl-imx6ul.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
fsl-imx7.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
fsl-imx8mp.c hw/arm/fsl-imx8mp: Wire VIRQ and VFIQ 2025-07-10 09:24:51 +01:00
fsl-imx25.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
fsl-imx31.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
highbank.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
imx8mp-evk.c include/system: Move exec/address-spaces.h to system/address-spaces.h 2025-04-23 14:08:21 -07:00
imx25_pdk.c hw/boards: Rename no_sdcard -> auto_create_sdcard 2025-02-16 14:25:08 +01:00
integratorcp.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
Kconfig hw/pci-host/aspeed: Add AST2600 PCIe PHY model 2025-09-29 18:00:20 +02:00
kzm.c include/system: Move exec/address-spaces.h to system/address-spaces.h 2025-04-23 14:08:21 -07:00
max78000_soc.c MAX78000: Add AES to SOC 2025-07-08 17:31:59 +01:00
max78000fthr.c MAX78000: Add MAX78000FTHR Machine 2025-07-08 17:31:38 +01:00
mcimx6ul-evk.c hw/boards: Rename no_sdcard -> auto_create_sdcard 2025-02-16 14:25:08 +01:00
mcimx7d-sabre.c hw/boards: Rename no_sdcard -> auto_create_sdcard 2025-02-16 14:25:08 +01:00
meson.build hw/arm/aspeed_ast27x0-tsp: Make AST27x0 TSP inherit from AspeedCoprocessor instead of AspeedSoC 2025-10-13 14:37:55 +02:00
microbit.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
mps2-tz.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
mps2.c hw/arm/mps2: Configure the AN500 CPU with 16 MPU regions 2025-06-16 11:26:25 +01:00
mps3r.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
msf2-soc.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
msf2-som.c include/system: Move exec/address-spaces.h to system/address-spaces.h 2025-04-23 14:08:21 -07:00
musca.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
musicpal.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
netduino2.c hw/arm: Remove all invalid uses of auto_create_sdcard=true 2025-02-16 14:25:08 +01:00
netduinoplus2.c hw/arm: Remove all invalid uses of auto_create_sdcard=true 2025-02-16 14:25:08 +01:00
npcm7xx.c qemu: Declare all load/store helper in 'qemu/bswap.h' 2025-07-15 02:56:39 -04:00
npcm7xx_boards.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
npcm8xx.c hw/arm: Add missing psci_conduit to NPCM8XX SoC boot info 2025-05-29 17:45:10 +01:00
npcm8xx_boards.c hw/arm/npcm8xx_boards: Correct valid_cpu_types setting of NPCM8XX SoC 2025-05-06 15:01:22 +01:00
nrf51_soc.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
olimex-stm32-h405.c hw/arm: Remove all invalid uses of auto_create_sdcard=true 2025-02-16 14:25:08 +01:00
omap1.c hw/arm: Replace TABs for spaces in OMAP board and device code 2025-05-14 14:29:47 +01:00
omap_sx1.c hw/arm: Replace TABs for spaces in OMAP board and device code 2025-05-14 14:29:47 +01:00
orangepi.c include/system: Move exec/address-spaces.h to system/address-spaces.h 2025-04-23 14:08:21 -07:00
raspi.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
raspi4b.c hw/arm/raspi4b: remove redundant check in raspi_add_memory_node 2025-09-16 17:31:53 +01:00
realview.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
sabrelite.c hw/boards: Rename no_sdcard -> auto_create_sdcard 2025-02-16 14:25:08 +01:00
sbsa-ref.c hw/arm/sbsa-ref: Tidy up use of RAMLIMIT_GB definition 2025-07-01 15:08:35 +01:00
smmu-common.c hw/arm/virt: Allow user-creatable SMMUv3 dev instantiation 2025-09-16 17:31:54 +01:00
smmu-internal.h hw/arm/smmu: Introduce smmu_configs_inv_sid_range() helper 2025-03-07 10:59:25 +00:00
smmuv3-internal.h hw/arm/smmuv3: Assert input to oas2bits() is valid 2024-07-29 13:34:18 +01:00
smmuv3.c hw/arm/virt: Allow user-creatable SMMUv3 dev instantiation 2025-09-16 17:31:54 +01:00
stellaris.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
stm32f100_soc.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
stm32f205_soc.c hw/arm/stm32f205_soc: Don't leak TYPE_OR_IRQ objects 2025-08-30 16:38:47 +01:00
stm32f405_soc.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
stm32l4x5_soc.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
stm32vldiscovery.c hw/arm: Remove all invalid uses of auto_create_sdcard=true 2025-02-16 14:25:08 +01:00
strongarm.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
strongarm.h include/system: Move exec/memory.h to system/memory.h 2025-04-23 14:08:21 -07:00
trace-events hw/arm/smmu: Introduce smmu_configs_inv_sid_range() helper 2025-03-07 10:59:25 +00:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
versatilepb.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
vexpress.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
virt-acpi-build.c qapi/acpi-hest: add an interface to do generic CPER error injection 2025-10-05 08:06:32 -04:00
virt.c smbios: cap DIMM size to 2Tb as workaround for broken Windows 2025-10-05 09:01:08 -04:00
xen-pvh.c hw/arm/xen-pvh: Remove unnecessary 'hw/xen/arch_hvm.h' header 2025-07-15 19:12:18 +02:00
xen-stubs.c cleanup: Drop pointless return at end of function 2025-04-24 09:33:42 +02:00
xilinx_zynq.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
xlnx-versal-virt.c hw/arm/xlnx-versal-virt: add the xlnx-versal2-virt machine 2025-10-07 10:35:36 +01:00
xlnx-versal.c hw/arm/xlnx-versal: add versal2 SoC 2025-10-07 10:35:36 +01:00
xlnx-zcu102.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
xlnx-zynqmp.c hw/arm/xlnx-zynqmp: wire a second GIC for the Cortex-R5 2025-10-07 10:39:15 +01:00