Mode 'const' functions

This commit is contained in:
Màrius Montón 2022-10-06 17:23:46 +02:00
parent 6fa13b2056
commit 91756df67e
No known key found for this signature in database
GPG Key ID: FA199E7A752699F0
1 changed files with 2 additions and 2 deletions

View File

@ -53,11 +53,11 @@ namespace riscv_tlm {
* @brief return instruction * @brief return instruction
* @return all instruction bits (31:0) * @return all instruction bits (31:0)
*/ */
std::uint32_t getInstr() { std::uint32_t getInstr() const {
return m_instr; return m_instr;
} }
inline void dump() { inline void dump() const {
std::cout << std::hex << "0x" << m_instr << std::dec << std::endl; std::cout << std::hex << "0x" << m_instr << std::dec << std::endl;
} }