increases verbosity for file loading errors
This commit is contained in:
parent
453407568c
commit
ec5fb1e87e
@ -412,8 +412,10 @@ template <typename BASE, typename LOGCAT = logging::disass> struct riscv_hart_co
|
|||||||
// Load ELF data
|
// Load ELF data
|
||||||
if(reader.load(name)) {
|
if(reader.load(name)) {
|
||||||
// check elf properties
|
// 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;
|
return false;
|
||||||
|
}
|
||||||
if(reader.get_type() != ELFIO::ET_EXEC)
|
if(reader.get_type() != ELFIO::ET_EXEC)
|
||||||
return false;
|
return false;
|
||||||
if(reader.get_machine() != ELFIO::EM_RISCV)
|
if(reader.get_machine() != ELFIO::EM_RISCV)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user