qemu-cr16/hw/mips
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
..
bootloader.c hw/mips/bootloader: Implement nanoMIPS JALRc opcode generator 2023-01-13 09:32:32 +01:00
boston.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
cps.c hw/mips: Restrict ITU to TCG 2025-07-15 00:24:26 +02:00
fuloong2e.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
fw_cfg.c hw/mips: Implement fw_cfg_arch_key_name() 2021-01-04 23:32:27 +01:00
fw_cfg.h hw/mips: Implement fw_cfg_arch_key_name() 2021-01-04 23:32:27 +01:00
jazz.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
Kconfig hw/mips: Remove mipssim machine 2025-09-02 17:57:05 +02:00
loongson3_bootp.c hw/mips/loongson3_virt: Propagate processor_id to init_loongson_params() 2025-01-31 19:36:43 +01:00
loongson3_bootp.h hw/mips/loongson3_virt: Propagate processor_id to init_loongson_params() 2025-01-31 19:36:43 +01:00
loongson3_virt.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
malta.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
meson.build hw/mips: Remove mipssim machine 2025-09-02 17:57:05 +02:00
mips_int.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
trace-events hw/mips/gt64xxx_pci: Move it to hw/pci-host/ 2023-01-13 09:32:32 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00