Browse Source

Simplify vsetvli x0, x0, given the error case is handled earlier

pull/1971/head
Andrew Waterman 1 year ago
parent
commit
b5e15e338d
  1. 2
      riscv/vector_unit.cc

2
riscv/vector_unit.cc

@ -56,7 +56,7 @@ reg_t vectorUnit_t::vectorUnit_t::set_vl(int rd, int rs1, reg_t reqVL, reg_t new
if (vlmax == 0) {
vl->write_raw(0);
} else if (rd == 0 && rs1 == 0) {
vl->write_raw(std::min(vl->read(), vlmax));
; // retain current VL
} else if (rd != 0 && rs1 == 0) {
vl->write_raw(vlmax);
} else if (rs1 != 0) {

Loading…
Cancel
Save