diff --git a/src/arch/riscv/isa/templates/vector_mem.isa b/src/arch/riscv/isa/templates/vector_mem.isa index 74d84dd69d..4013b2a5d0 100644 --- a/src/arch/riscv/isa/templates/vector_mem.isa +++ b/src/arch/riscv/isa/templates/vector_mem.isa @@ -464,8 +464,7 @@ def template VlmConstructor {{ %(set_reg_idx_arr)s; %(constructor)s; - const uint32_t micro_vlmax = vlen / width_EEW(_machInst.width); - int32_t micro_vl = (std::min(this->vl, micro_vlmax) + 7) / 8; + int32_t micro_vl = (this->vl + 7) / 8; StaticInstPtr microop; if (micro_vl == 0) { @@ -491,8 +490,7 @@ def template VsmConstructor {{ %(set_reg_idx_arr)s; %(constructor)s; - const uint32_t micro_vlmax = vlen / width_EEW(_machInst.width); - int32_t micro_vl = (std::min(this->vl, micro_vlmax) + 7) / 8; + int32_t micro_vl = (this->vl + 7) / 8; StaticInstPtr microop; if (micro_vl == 0) {