aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns
diff options
context:
space:
mode:
authorHong Cheng <hong.h.cheng@intel.com>2024-01-18 00:33:47 -0500
committerHong Cheng <hong.h.cheng@intel.com>2024-01-18 23:42:36 -0500
commit9e0d9d6d1f4eb8bf2eec5fe792e4cfb7ea5be130 (patch)
treed34db46e8704ea54ed14ef09df7707f1748229b8 /riscv/insns
parent99a447247a2a4b6d366e15c7a92cc79fbba9a397 (diff)
downloadriscv-isa-sim-9e0d9d6d1f4eb8bf2eec5fe792e4cfb7ea5be130.zip
riscv-isa-sim-9e0d9d6d1f4eb8bf2eec5fe792e4cfb7ea5be130.tar.gz
riscv-isa-sim-9e0d9d6d1f4eb8bf2eec5fe792e4cfb7ea5be130.tar.bz2
vcpop.m, vfirst.m: delete unnecessary VSTART write.
Diffstat (limited to 'riscv/insns')
-rw-r--r--riscv/insns/vcpop_m.h1
-rw-r--r--riscv/insns/vfirst_m.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/riscv/insns/vcpop_m.h b/riscv/insns/vcpop_m.h
index 671362f..f909311 100644
--- a/riscv/insns/vcpop_m.h
+++ b/riscv/insns/vcpop_m.h
@@ -17,5 +17,4 @@ for (reg_t i=P.VU.vstart->read(); i<vl; ++i) {
popcount += (vs2_lsb && do_mask);
}
}
-P.VU.vstart->write(0);
WRITE_RD(popcount);
diff --git a/riscv/insns/vfirst_m.h b/riscv/insns/vfirst_m.h
index 9ddc82b..a130e5d 100644
--- a/riscv/insns/vfirst_m.h
+++ b/riscv/insns/vfirst_m.h
@@ -14,5 +14,4 @@ for (reg_t i=P.VU.vstart->read(); i < vl; ++i) {
break;
}
}
-P.VU.vstart->write(0);
WRITE_RD(pos);