aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vmv_x_s.h
diff options
context:
space:
mode:
authorDave.Wen <dave.wen@sifive.com>2020-02-13 20:04:21 -0800
committerChih-Min Chao <chihmin.chao@sifive.com>2020-02-14 01:49:13 -0800
commit320882e1e403d262c408be28d9329e95eb53909b (patch)
treed0c2864c6896ac21354c6078acf484ef0bfd7bb8 /riscv/insns/vmv_x_s.h
parentb41a465767999de2d33ed3f30e2cb6965d809fdd (diff)
downloadspike-320882e1e403d262c408be28d9329e95eb53909b.zip
spike-320882e1e403d262c408be28d9329e95eb53909b.tar.gz
spike-320882e1e403d262c408be28d9329e95eb53909b.tar.bz2
rvv: reset vstart to 0 when vmv.s.x and vmv.x.s and also check the vstart < vl in vmv.s.x
Diffstat (limited to 'riscv/insns/vmv_x_s.h')
-rw-r--r--riscv/insns/vmv_x_s.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/insns/vmv_x_s.h b/riscv/insns/vmv_x_s.h
index 50f2e79..086812b 100644
--- a/riscv/insns/vmv_x_s.h
+++ b/riscv/insns/vmv_x_s.h
@@ -26,3 +26,5 @@ if (!(rs1 >= 0 && rs1 < (P.VU.get_vlen() / sew))) {
break;
}
}
+
+P.VU.vstart = 0;