[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 23/25] hw/arm/boot: Report error msg if loading elf/dtb failed
From: |
Peter Maydell |
Subject: |
[PULL 23/25] hw/arm/boot: Report error msg if loading elf/dtb failed |
Date: |
Thu, 5 Sep 2024 14:00:58 +0100 |
From: Changbin Du <changbin.du@huawei.com>
Print errors before exit. Do not exit silently.
Cc: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Changbin Du <changbin.du@huawei.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20240903133940.3447430-1-changbin.du@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/arm/boot.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/arm/boot.c b/hw/arm/boot.c
index d480a7da02c..6c895e05cbc 100644
--- a/hw/arm/boot.c
+++ b/hw/arm/boot.c
@@ -839,6 +839,8 @@ static ssize_t arm_load_elf(struct arm_boot_info *info,
uint64_t *pentry,
1, data_swab, as);
if (ret <= 0) {
/* The header loaded but the image didn't */
+ error_report("Couldn't load elf '%s': %s",
+ info->kernel_filename, load_elf_strerror(ret));
exit(1);
}
--
2.34.1
- [PULL 01/25] target/arm: Allow setting the FPCR.EBF bit for FEAT_EBF16, (continued)
- [PULL 01/25] target/arm: Allow setting the FPCR.EBF bit for FEAT_EBF16, Peter Maydell, 2024/09/05
- [PULL 09/25] accel/tcg: Remove dead code from rr_cpu_thread_fn(), Peter Maydell, 2024/09/05
- [PULL 07/25] target/arm: Implement FPCR.EBF=1 semantics for bfdotadd(), Peter Maydell, 2024/09/05
- [PULL 11/25] hw/arm/smmuv3: Update comment documenting "stage" property, Peter Maydell, 2024/09/05
- [PULL 14/25] hw/misc/xlnx-versal-cfu: destroy fifo in finalize, Peter Maydell, 2024/09/05
- [PULL 10/25] hw: add compat machines for 9.2, Peter Maydell, 2024/09/05
- [PULL 13/25] hw/arm/sbsa-ref: Use two-stage SMMU, Peter Maydell, 2024/09/05
- [PULL 04/25] target/arm: Pass env pointer through to gvec_bfdot_idx helper, Peter Maydell, 2024/09/05
- [PULL 16/25] hw/nvram/xlnx-bbram: Call register_finalize_block, Peter Maydell, 2024/09/05
- [PULL 17/25] hw/nvram/xlnx-zynqmp-efuse: Call register_finalize_block, Peter Maydell, 2024/09/05
- [PULL 23/25] hw/arm/boot: Report error msg if loading elf/dtb failed,
Peter Maydell <=
- [PULL 08/25] target/arm: Enable FEAT_EBF16 in the "max" CPU, Peter Maydell, 2024/09/05
- [PULL 02/25] target/arm: Pass env pointer through to sme_bfmopa helper, Peter Maydell, 2024/09/05
- [PULL 19/25] hm/nvram/xlnx-versal-efuse-ctrl: Call register_finalize_block, Peter Maydell, 2024/09/05
- [PULL 22/25] hw/arm/xilinx_zynq: Enable Security Extensions, Peter Maydell, 2024/09/05
- [PULL 25/25] platform-bus: fix refcount leak, Peter Maydell, 2024/09/05
- [PULL 18/25] hw/misc/xlnx-versal-trng: Call register_finalize_block, Peter Maydell, 2024/09/05
- [PULL 20/25] hw/arm/sbsa-ref: Don't leak string in sbsa_fdt_add_gic_node(), Peter Maydell, 2024/09/05
- [PULL 21/25] target/arm: Correct names of VFP VFNMA and VFNMS insns, Peter Maydell, 2024/09/05
- [PULL 15/25] hw/misc/xlnx-versal-trng: Free s->prng in finalize, not unrealize, Peter Maydell, 2024/09/05
- [PULL 24/25] hw/arm/boot: Explain why load_elf_hdr() error is ignored, Peter Maydell, 2024/09/05