From f68fc475550820a273657676424c7e97886de2c9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 12 Oct 2018 16:20:27 +0100 Subject: [PATCH] add frs2 redirect --- riscv/sv_insn_redirect.cc | 5 +++++ riscv/sv_insn_redirect.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/riscv/sv_insn_redirect.cc b/riscv/sv_insn_redirect.cc index 283543a..05c55d1 100644 --- a/riscv/sv_insn_redirect.cc +++ b/riscv/sv_insn_redirect.cc @@ -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()); +} + diff --git a/riscv/sv_insn_redirect.h b/riscv/sv_insn_redirect.h index 64338e0..95550ba 100644 --- a/riscv/sv_insn_redirect.h +++ b/riscv/sv_insn_redirect.h @@ -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" }; -- 2.30.2