diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-06-17 01:15:40 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-06-17 19:19:50 -0700 |
commit | 23461637db6c7add002112bca4c430e613522f88 (patch) | |
tree | a88053425b5a8fb6f14f953acb136583637910ea /riscv/execute.cc | |
parent | 960274cda20af7303fdf8109e27d9720395ae21f (diff) | |
download | spike-23461637db6c7add002112bca4c430e613522f88.zip spike-23461637db6c7add002112bca4c430e613522f88.tar.gz spike-23461637db6c7add002112bca4c430e613522f88.tar.bz2 |
rvv: commitlog: fix fractional lmul dump
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/execute.cc')
-rw-r--r-- | riscv/execute.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc index e5513d8..7e89cd1 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -109,8 +109,8 @@ static void commit_log_print_insn(processor_t *p, reg_t pc, insn_t insn) if (!show_vec && (is_vreg || is_vec)) { fprintf(log_file, " e%ld %s%ld l%ld", p->VU.vsew, - p->VU.vflmul < 0 ? "mf" : "m", - p->VU.vflmul < 0 ? (reg_t)(1 / p->VU.vflmul) : (reg_t)p->VU.vflmul, + p->VU.vflmul < 1 ? "mf" : "m", + p->VU.vflmul < 1 ? (reg_t)(1 / p->VU.vflmul) : (reg_t)p->VU.vflmul, p->VU.vl); show_vec = true; } |