From ec5fb1e87e23b9fc4a0388244cabc077d76b9202 Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Sun, 9 Mar 2025 20:04:43 +0100 Subject: [PATCH] increases verbosity for file loading errors --- src/iss/arch/riscv_hart_common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/iss/arch/riscv_hart_common.h b/src/iss/arch/riscv_hart_common.h index d5b3554..924f928 100644 --- a/src/iss/arch/riscv_hart_common.h +++ b/src/iss/arch/riscv_hart_common.h @@ -412,8 +412,10 @@ template struct riscv_hart_co // Load ELF data if(reader.load(name)) { // check elf properties - if(reader.get_class() != expected_elf_class) + if(reader.get_class() != expected_elf_class) { + CPPLOG(ERR) << "ISA missmatch, selected XLEN does not match supplied file "; return false; + } if(reader.get_type() != ELFIO::ET_EXEC) return false; if(reader.get_machine() != ELFIO::EM_RISCV)