use uint32_t for vl
[riscv-isa-sim.git] / hwacha / hwacha.cc
index 8eff59ca26643a3b7145da7b6a7e13802557b516..61282d3c8cbf02c5aaf85d937430277714d8f686 100644 (file)
@@ -37,7 +37,7 @@ std::vector<insn_desc_t> hwacha_t::get_instructions()
 
 bool hwacha_t::vf_active()
 {
-  for (int i=0; i<get_ct_state()->vl; i++) {
+  for (uint32_t i=0; i<get_ct_state()->vl; i++) {
     if (get_ut_state(i)->run)
       return true;
   }