add frs2 redirect
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 12 Oct 2018 15:20:27 +0000 (16:20 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 12 Oct 2018 15:20:27 +0000 (16:20 +0100)
riscv/sv_insn_redirect.cc
riscv/sv_insn_redirect.h

index 283543ac42bff1f3e5941e8da78cbe6fd3c0a31a..05c55d130a84a8286c5f188fca31da3d7bb43c50 100644 (file)
@@ -33,3 +33,8 @@ freg_t sv_proc_t::get_frs1()
     return READ_FREG(insn->rs1());
 }
 
+freg_t sv_proc_t::get_frs2()
+{
+    return READ_FREG(insn->rs2());
+}
+
index 64338e0112e8cd511c87163c776bde1a88b54cb2..95550ba8eb5cc227689363e7c655671a8d4c2f09 100644 (file)
@@ -9,11 +9,13 @@
 #undef RS2
 #undef RS3
 #undef FRS1
+#undef FRS2
 
 class processor_t;
 class insn_t;
 
 #define FRS1 get_frs1()
+#define FRS2 get_frs2()
 #define RS1 get_rs1()
 #define RS2 get_rs2()
 #define RS3 get_rs3()
@@ -48,6 +50,7 @@ public:
     reg_t get_rs3();
 
     freg_t get_frs1();
+    freg_t get_frs2();
 
 #include "sv_insn_decl.h"
 };