void (sv_proc_t::DO_WRITE_FREG)(reg_spec_t const& spec, sv_freg_t const& value)
{
- int flen = sizeof(freg_t) * 8; // FLEN (not specified in spike)
+ //int flen = sizeof(freg_t) * 8; // FLEN (not specified in spike)
+ int flen = _insn->flen;
reg_t reg = spec.reg;
uint8_t dest_elwidth = _insn->reg_elwidth(reg, false);
int bitwidth = get_bitwidth(dest_elwidth, flen);
freg_t (sv_proc_t::READ_FREG)(reg_spec_t const& spec)
{
- int flen = sizeof(freg_t) * 8; // FLEN (not specified in spike)
+ //int flen = sizeof(freg_t) * 8; // FLEN (not specified in spike)
+ int flen = _insn->flen;
reg_t reg = spec.reg;
uint8_t elwidth = _insn->reg_elwidth(reg, false);
int bitwidth = get_bitwidth(elwidth, flen);