diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-01-06 20:16:41 -0800 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-01-22 07:54:18 -0800 |
commit | 2596d665522ea394e1964f63f6f30bedb0b31d83 (patch) | |
tree | 761f5e078cb956f78e59a8b4d0b2d18a64ad1efb /riscv/insns/vmsif_m.h | |
parent | 871b4055d03a6e7c03db710182c5ffbde2775084 (diff) | |
download | spike-2596d665522ea394e1964f63f6f30bedb0b31d83.zip spike-2596d665522ea394e1964f63f6f30bedb0b31d83.tar.gz spike-2596d665522ea394e1964f63f6f30bedb0b31d83.tar.bz2 |
commitlog: rvv: add commitlog support to misc instrutions
other instructions, which doesn't use macro in decoder.h
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/insns/vmsif_m.h')
-rw-r--r-- | riscv/insns/vmsif_m.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/vmsif_m.h b/riscv/insns/vmsif_m.h index 381088b..0896095 100644 --- a/riscv/insns/vmsif_m.h +++ b/riscv/insns/vmsif_m.h @@ -16,9 +16,9 @@ for (reg_t i = P.VU.vstart ; i < vl; ++i) { bool vs2_lsb = ((P.VU.elt<uint64_t>(rs2_num, midx ) >> mpos) & 0x1) == 1; bool do_mask = (P.VU.elt<uint64_t>(0, midx) >> mpos) & 0x1; - auto &vd = P.VU.elt<uint64_t>(rd_num, midx); if (insn.v_vm() == 1 || (insn.v_vm() == 0 && do_mask)) { + auto &vd = P.VU.elt<uint64_t>(rd_num, midx, true); uint64_t res = 0; if (!has_one && !vs2_lsb) { res = 1; |