From 91756df67e9c442c9c0a1b06b996c50b517deda4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A0rius=20Mont=C3=B3n?= Date: Thu, 6 Oct 2022 17:23:46 +0200 Subject: [PATCH] Mode 'const' functions --- inc/Instruction.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/Instruction.h b/inc/Instruction.h index fefb306..5dfe850 100644 --- a/inc/Instruction.h +++ b/inc/Instruction.h @@ -53,11 +53,11 @@ namespace riscv_tlm { * @brief return instruction * @return all instruction bits (31:0) */ - std::uint32_t getInstr() { + std::uint32_t getInstr() const { return m_instr; } - inline void dump() { + inline void dump() const { std::cout << std::hex << "0x" << m_instr << std::dec << std::endl; }