Helper functions for test-suite
This commit is contained in:
parent
643b880be3
commit
89f9293ff3
|
@ -183,5 +183,11 @@ namespace riscv_tlm {
|
|||
delay = sc_core::SC_ZERO_TIME;
|
||||
}
|
||||
|
||||
|
||||
std::uint64_t RV32::getStartDumpAddress() {
|
||||
return register_bank->getValue(Registers<std::uint32_t>::t0);
|
||||
}
|
||||
|
||||
std::uint64_t RV32::getEndDumpAddress() {
|
||||
return register_bank->getValue(Registers<std::uint32_t>::t1);
|
||||
}
|
||||
}
|
|
@ -179,5 +179,11 @@ namespace riscv_tlm {
|
|||
delay = sc_core::SC_ZERO_TIME;
|
||||
}
|
||||
|
||||
|
||||
std::uint64_t RV64::getStartDumpAddress() {
|
||||
return register_bank->getValue(Registers<std::uint32_t>::t0);
|
||||
}
|
||||
|
||||
std::uint64_t RV64::getEndDumpAddress() {
|
||||
return register_bank->getValue(Registers<std::uint32_t>::t1);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue