remove duplicated methods
This commit is contained in:
parent
cc9045341d
commit
22b7ec4c03
|
@ -67,17 +67,6 @@ public:
|
|||
return m_instr.range(31, 27);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Access to rd field
|
||||
* @return rd field
|
||||
*/
|
||||
inline int32_t get_rd() const override {
|
||||
return m_instr.range(11, 7);
|
||||
}
|
||||
|
||||
inline void set_rd(int32_t value) override {
|
||||
m_instr.range(11, 7) = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Access to rs1 field
|
||||
|
|
|
@ -100,22 +100,6 @@ public:
|
|||
*/
|
||||
using extension_base::extension_base;
|
||||
|
||||
/**
|
||||
* @brief Access to rd field
|
||||
* @return rd field
|
||||
*/
|
||||
inline int32_t get_rd() const override {
|
||||
return m_instr.range(11, 7);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Sets rd field
|
||||
* @param value desired rd value
|
||||
*/
|
||||
inline void set_rd(int32_t value) override {
|
||||
m_instr.range(11, 7) = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Access to rs1 field
|
||||
* @return rs1 field
|
||||
|
|
|
@ -109,18 +109,6 @@ public:
|
|||
return m_instr.range(1, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Access to rd field
|
||||
* @return rd field
|
||||
*/
|
||||
inline int32_t get_rd () const override {
|
||||
return m_instr.range(11, 7);
|
||||
}
|
||||
|
||||
inline void set_rd(int32_t value) override {
|
||||
m_instr.range(11, 7) = value;
|
||||
}
|
||||
|
||||
inline int32_t get_rdp() const {
|
||||
return m_instr.range(4, 2) + 8;
|
||||
}
|
||||
|
|
|
@ -81,18 +81,6 @@ private:
|
|||
return m_instr.range(14, 12);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Access to rd field
|
||||
* @return rd field
|
||||
*/
|
||||
inline int32_t get_rd() const {
|
||||
return m_instr.range(11, 7);
|
||||
}
|
||||
|
||||
inline void set_rd(int32_t value) {
|
||||
m_instr.range(11, 7) = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Access to rs1 field
|
||||
* @return rs1 field
|
||||
|
|
|
@ -36,8 +36,12 @@ public:
|
|||
|
||||
/* pure virtual functions */
|
||||
virtual int32_t opcode() const = 0;
|
||||
virtual int32_t get_rd() const = 0;
|
||||
virtual void set_rd(int32_t value) = 0;
|
||||
virtual int32_t get_rd() const {
|
||||
return m_instr.range(11, 7);
|
||||
}
|
||||
virtual void set_rd(int32_t value) {
|
||||
m_instr.range(11, 7) = value;
|
||||
}
|
||||
virtual int32_t get_rs1() const = 0;
|
||||
virtual void set_rs1(int32_t value) = 0;
|
||||
virtual int32_t get_rs2() const = 0;
|
||||
|
|
Loading…
Reference in New Issue