add sv_insn_t overloads for rvc registers
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 29 Sep 2018 11:13:25 +0000 (12:13 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 29 Sep 2018 11:13:25 +0000 (12:13 +0100)
riscv/sv_decode.h

index e80fab0b11e4dfae9e163b74e3b0e8812f163d7f..3433bdabf7312578c24f1ce5ec2cafc4bbb6aa91 100644 (file)
@@ -34,6 +34,18 @@ public:
     { return _remap(insn_t::rs2(), fimap & REG_RS2, offs_rs2, cached_rs2); }
   uint64_t rs3()
     { return _remap(insn_t::rs3(), fimap & REG_RS3, offs_rs3, cached_rs3); }
+  uint64_t rvc_rs1 ()
+    { return _remap(insn_t::rvc_rs1(), fimap & REG_RVC_RS1,
+                    offs_rs1, cached_rs1); }
+  uint64_t rvc_rs1s ()
+    { return _remap(insn_t::rvc_rs1s(), fimap & REG_RVC_RS1S,
+                    offs_rs1, cached_rs1); }
+  uint64_t rvc_rs2 ()
+    { return _remap(insn_t::rvc_rs2(), fimap & REG_RVC_RS2,
+                    offs_rs2, cached_rs2); }
+  uint64_t rvc_rs2s ()
+    { return _remap(insn_t::rvc_rs2s(), fimap & REG_RVC_RS2S,
+                    offs_rs2, cached_rs2); }
 
   void reset_caches(void)
   {