qemu-cr16/hw/m68k
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
..
an5206.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
bootinfo.h hw/m68k: Use explicit big-endian LD/ST API 2024-10-07 11:33:20 +02:00
Kconfig next-cube: add empty slots for unknown accesses to next.scr memory region 2024-12-29 07:13:47 +01:00
mcf5206.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
mcf5208.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
mcf_intc.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
meson.build q800: move GLUE device into separate q800-glue.c file 2023-06-22 09:21:57 +02:00
next-cube.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
next-kbd.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
q800-glue.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
q800.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00
virt.c hw/core/loader: capture Error from load_image_targphys 2025-10-28 08:19:18 +01:00