Helper functions for test-suite

This commit is contained in:
Màrius Montón 2022-09-14 20:02:43 +02:00
parent 643b880be3
commit 89f9293ff3
No known key found for this signature in database
GPG Key ID: FA199E7A752699F0
2 changed files with 12 additions and 0 deletions

View File

@ -183,5 +183,11 @@ namespace riscv_tlm {
delay = sc_core::SC_ZERO_TIME; 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);
}
} }

View File

@ -179,5 +179,11 @@ namespace riscv_tlm {
delay = sc_core::SC_ZERO_TIME; 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);
}
} }