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)