return insn->p->get_state()->XPR[insn->rs2()];
}
+reg_t sv_proc_t::get_rs3()
+{
+ return insn->p->get_state()->XPR[insn->rs3()];
+}
+
freg_t sv_proc_t::get_frs1()
{
return READ_FREG(insn->rs1());
#undef RS1
#undef RS2
+#undef RS3
#undef FRS1
class processor_t;
class insn_t;
-/*
-class FRS1 {
- public:
- sv_insn_t *_insn;
- FRS1() : _insn(NULL) {}
- //sv_insn_t & operator = (sv_insn_t &i)
- //{ _insn = &i; return i; }
- operator freg_t () const &;
-};
-*/
-
#define FRS1 get_frs1()
#define RS1 get_rs1()
#define RS2 get_rs2()
+#define RS3 get_rs3()
/*
class RS2 {
reg_t get_rs1();
reg_t get_rs2();
+ reg_t get_rs3();
freg_t get_frs1();