From 2596d665522ea394e1964f63f6f30bedb0b31d83 Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Mon, 6 Jan 2020 20:16:41 -0800 Subject: commitlog: rvv: add commitlog support to misc instrutions other instructions, which doesn't use macro in decoder.h Signed-off-by: Chih-Min Chao --- riscv/insns/vmsof_m.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'riscv/insns/vmsof_m.h') diff --git a/riscv/insns/vmsof_m.h b/riscv/insns/vmsof_m.h index d66002d..26a89f0 100644 --- a/riscv/insns/vmsof_m.h +++ b/riscv/insns/vmsof_m.h @@ -16,9 +16,9 @@ for (reg_t i = P.VU.vstart ; i < vl; ++i) { bool vs2_lsb = ((P.VU.elt(rs2_num, midx ) >> mpos) & 0x1) == 1; bool do_mask = (P.VU.elt(0, midx) >> mpos) & 0x1; - uint64_t &vd = P.VU.elt(rd_num, midx); if (insn.v_vm() == 1 || (insn.v_vm() == 0 && do_mask)) { + uint64_t &vd = P.VU.elt(rd_num, midx, true); uint64_t res = 0; if(!has_one && vs2_lsb) { has_one = true; -- cgit v1.1