}
}
+/*
+int to_elwidth(uint8_t bitwidth, int xlen)
+{
+ switch (bitwidth) {
+ case xlen: return 0;
+ case 8: return 1;
+ case 16: return 2;
+ default: return 3;
+ }
+}
+*/
+
sv_insn_t::sv_insn_t(processor_t *pr, bool _sv_enabled,
insn_bits_t bits, unsigned int f, int _xlen,
uint64_t &p_rd, uint64_t &p_rs1, uint64_t &p_rs2, uint64_t &p_rs3,
#define zext_bwid(x,wid) (((reg_t)(x) << (64-wid)) >> (64-wid))
extern int get_bitwidth(uint8_t elwidth, int xlen);
+//extern int to_elwidth(uint8_t bitwidth, int xlen);
class sv_sreg_t;