aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2020-02-10 21:55:27 -0800
committerChih-Min Chao <chihmin.chao@sifive.com>2020-02-18 09:19:49 -0800
commit4a0ad01f700460a1587581305b8007cc8936663e (patch)
tree4050ec9c256754c457a8dc94db845d57b13cb88e
parenteeba38241d4bc9cca1f3b3acfd2564baa51edf76 (diff)
downloadspike-4a0ad01f700460a1587581305b8007cc8936663e.zip
spike-4a0ad01f700460a1587581305b8007cc8936663e.tar.gz
spike-4a0ad01f700460a1587581305b8007cc8936663e.tar.bz2
commitlog: fix printf format warning
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
-rw-r--r--riscv/execute.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc
index 974ad7f..cff8496 100644
--- a/riscv/execute.cc
+++ b/riscv/execute.cc
@@ -92,7 +92,7 @@ static void commit_log_print_insn(processor_t* p, reg_t pc, insn_t insn)
}
if (is_vec)
- fprintf(stderr, " e%d m%d", p->VU.vsew >> 3, p->VU.vlmul);
+ fprintf(stderr, " e%ld m%ld", p->VU.vsew >> 3, p->VU.vlmul);
fprintf(stderr, " %c%2d ", prefix, rd);
if (is_vec)