Merge branch 'tmp' into develop

This commit is contained in:
Eyck-Alexander Jentzsch 2023-07-03 14:22:50 +02:00
commit 87b4082633
6 changed files with 202 additions and 202 deletions

View File

@ -207,7 +207,7 @@ private:
${it}<%}%>
}
auto cur_pc_val = tu.constant(pc.val, traits::reg_bit_widths[traits::PC]);
pc=pc+4;
pc=pc+ ${instr.length/8};
gen_set_pc(tu, pc, traits::NEXT_PC);
tu.open_scope();<%instr.behavior.eachLine{%>
${it}<%}%>

View File

@ -619,9 +619,9 @@ template <typename BASE, features_e FEAT> std::pair<uint64_t, bool> riscv_hart_m
}
return std::make_pair(entry, true);
}
throw std::runtime_error("memory load file is not a valid elf file");
throw std::runtime_error(fmt::format("memory load file {} is not a valid elf file",name));
}
throw std::runtime_error("memory load file not found");
throw std::runtime_error(fmt::format("memory load file not found, check if {} is a valid file", name));
}
template<typename BASE, features_e FEAT>

View File

@ -588,9 +588,9 @@ template <typename BASE> std::pair<uint64_t, bool> riscv_hart_msu_vp<BASE>::load
}
return std::make_pair(entry, true);
}
throw std::runtime_error("memory load file is not a valid elf file");
throw std::runtime_error(fmt::format("memory load file {} is not a valid elf file",name));
}
throw std::runtime_error("memory load file not found");
throw std::runtime_error(fmt::format("memory load file not found, check if {} is a valid file", name));
}
template <typename BASE>

View File

@ -690,9 +690,9 @@ template <typename BASE, features_e FEAT> std::pair<uint64_t, bool> riscv_hart_m
}
return std::make_pair(entry, true);
}
throw std::runtime_error("memory load file is not a valid elf file");
throw std::runtime_error(fmt::format("memory load file {} is not a valid elf file",name));
}
throw std::runtime_error("memory load file not found");
throw std::runtime_error(fmt::format("memory load file not found, check if {} is a valid file", name));
}
template<typename BASE, features_e FEAT>

View File

@ -53,7 +53,7 @@ template <> struct traits<tgc_c> {
static constexpr std::array<const char*, 36> reg_aliases{
{"ZERO", "RA", "SP", "GP", "TP", "T0", "T1", "T2", "S0", "S1", "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "S2", "S3", "S4", "S5", "S6", "S7", "S8", "S9", "S10", "S11", "T3", "T4", "T5", "T6", "PC", "NEXT_PC", "PRIV", "DPC"}};
enum constants {MISA_VAL=0b01000000000000000001000100000100, MARCHID_VAL=0x80000003, XLEN=32, INSTR_ALIGNMENT=2, RFS=32, fence=0, fencei=1, fencevmal=2, fencevmau=3, CSR_SIZE=4096, MUL_LEN=64};
enum constants {MISA_VAL=0b01000000000000000001000100000100, MARCHID_VAL=0x80000003, PGMASK=0b111111111111, XLEN=32, INSTR_ALIGNMENT=2, RFS=32, fence=0, fencei=1, fencevmal=2, fencevmau=3, CSR_SIZE=4096, MUL_LEN=64};
constexpr static unsigned FP_REGS_SIZE = 0;

File diff suppressed because it is too large Load Diff