diff --git a/src/arch/riscv/isa/templates/vector_arith.isa b/src/arch/riscv/isa/templates/vector_arith.isa index bce4e2c55e..12eab95246 100644 --- a/src/arch/riscv/isa/templates/vector_arith.isa +++ b/src/arch/riscv/isa/templates/vector_arith.isa @@ -1097,11 +1097,7 @@ template int32_t micro_vl = std::min(tmp_vl, micro_vlmax); StaticInstPtr microop; - if (micro_vl == 0) { - microop = new VectorNopMicroInst(_machInst); - this->microops.push_back(microop); - } - for (int i = 0; i < num_microops && micro_vl > 0; ++i) { + for (int i = 0; i < num_microops && micro_vl >= 0; ++i) { microop = new %(class_name)sMicro(_machInst, micro_vl, i); microop->setDelayedCommit(); this->microops.push_back(microop);