add const to some functions
This commit is contained in:
		
							parent
							
								
									bdd2f14479
								
							
						
					
					
						commit
						6001fd902f
					
				|  | @ -1787,7 +1787,7 @@ namespace riscv_tlm { | ||||||
|          * @brief Decodes opcode of instruction |          * @brief Decodes opcode of instruction | ||||||
|          * @return opcode of instruction |          * @return opcode of instruction | ||||||
|          */ |          */ | ||||||
|         opCodes decode() { |         opCodes decode() const { | ||||||
|             switch (opcode()) { |             switch (opcode()) { | ||||||
|                 case LUI: |                 case LUI: | ||||||
|                     return OP_LUI; |                     return OP_LUI; | ||||||
|  |  | ||||||
|  | @ -182,7 +182,7 @@ namespace riscv_tlm { | ||||||
|             return aux; |             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; |             this->m_instr.range(31, 20) = value; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue