aboutsummaryrefslogtreecommitdiff
path: root/riscv/execute.cc
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2020-06-04 01:45:04 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2020-06-04 01:47:58 -0700
commit3fbe5ad91f124c72b25873b65b712b099fe58486 (patch)
tree494884873aa9f0b0375fefb3663fb035453b8322 /riscv/execute.cc
parent7246912cd7e21f0c68cd3258ae4ab59e4d836155 (diff)
downloadspike-3fbe5ad91f124c72b25873b65b712b099fe58486.zip
spike-3fbe5ad91f124c72b25873b65b712b099fe58486.tar.gz
spike-3fbe5ad91f124c72b25873b65b712b099fe58486.tar.bz2
rvv: fix compilation warning
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/execute.cc')
-rw-r--r--riscv/execute.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc
index b18a55d..e5513d8 100644
--- a/riscv/execute.cc
+++ b/riscv/execute.cc
@@ -110,7 +110,7 @@ static void commit_log_print_insn(processor_t *p, reg_t pc, insn_t insn)
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.vflmul < 0 ? (reg_t)(1 / p->VU.vflmul) : (reg_t)p->VU.vflmul,
p->VU.vl);
show_vec = true;
}