73a2941b7e2f7cc8c7677fe1bc8257012152f7d0
1 // See LICENSE for license details.
3 #ifndef _RISCV_SV_DECODE_H
4 #define _RISCV_SV_DECODE_H
9 class sv_insn_t
: public insn_t
12 sv_insn_t(insn_bits_t bits
, int& v
) : insn_t(bits
), vlen(v
) {}
13 uint64_t rd () { return remap(insn_t::rd()); }
14 uint64_t rs1() { return remap(insn_t::rs1()); }
15 uint64_t rs2() { return remap(insn_t::rs2()); }
16 uint64_t rs3() { return remap(insn_t::rs3()); }
19 // remaps the register through the lookup table.
20 // will need to take the current loop index/offset somehow
21 uint64_t remap(uint64_t reg
) { return reg
; } // TODO