aboutsummaryrefslogtreecommitdiff
path: root/riscv/execute.cc
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2020-05-29 15:52:45 -0700
committerGitHub <noreply@github.com>2020-05-29 15:52:45 -0700
commit7246912cd7e21f0c68cd3258ae4ab59e4d836155 (patch)
tree8245cc808079c655c7bcbd495c78ae58e65019a3 /riscv/execute.cc
parent1edd5a019177ed1f8527465d8c239415a9f9e296 (diff)
parent2469a57166ae623fb0d1170d86aecec84a616f02 (diff)
downloadspike-7246912cd7e21f0c68cd3258ae4ab59e4d836155.zip
spike-7246912cd7e21f0c68cd3258ae4ab59e4d836155.tar.gz
spike-7246912cd7e21f0c68cd3258ae4ab59e4d836155.tar.bz2
Merge pull request #475 from chihminchao/rvv-0.9
Rvv 0.9
Diffstat (limited to 'riscv/execute.cc')
-rw-r--r--riscv/execute.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc
index 6f484c5..b18a55d 100644
--- a/riscv/execute.cc
+++ b/riscv/execute.cc
@@ -107,7 +107,11 @@ 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 m%ld l%ld", p->VU.vsew, p->VU.vlmul, p->VU.vl);
+ fprintf(log_file, " e%ld %s%ld l%ld",
+ p->VU.vsew,
+ p->VU.vflmul < 0 ? "mf" : "m",
+ p->VU.vflmul < 0 ? (1 / p->VU.vflmul) : p->VU.vflmul,
+ p->VU.vl);
show_vec = true;
}