diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-02-10 21:55:27 -0800 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-02-18 09:19:49 -0800 |
commit | 4a0ad01f700460a1587581305b8007cc8936663e (patch) | |
tree | 4050ec9c256754c457a8dc94db845d57b13cb88e | |
parent | eeba38241d4bc9cca1f3b3acfd2564baa51edf76 (diff) | |
download | spike-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.cc | 2 |
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) |