add const to some functions

This commit is contained in:
Màrius Montón 2022-09-30 15:42:16 +02:00
parent bdd2f14479
commit 6001fd902f
No known key found for this signature in database
GPG Key ID: FA199E7A752699F0
2 changed files with 2 additions and 2 deletions

View File

@ -1787,7 +1787,7 @@ namespace riscv_tlm {
* @brief Decodes opcode of instruction
* @return opcode of instruction
*/
opCodes decode() {
opCodes decode() const {
switch (opcode()) {
case LUI:
return OP_LUI;

View File

@ -182,7 +182,7 @@ namespace riscv_tlm {
return aux;
}
inline void set_imm_I(std::uint32_t value) {
inline void set_imm_I(std::uint32_t value) const {
this->m_instr.range(31, 20) = value;
}