Browse Source

commitlog: fix compilation warning

Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
pull/586/head
Chih-Min Chao 6 years ago
parent
commit
1af67080dd
  1. 2
      riscv/execute.cc

2
riscv/execute.cc

@ -76,7 +76,7 @@ static void commit_log_print_insn(processor_t *p, reg_t pc, insn_t insn)
int flen = p->get_state()->last_inst_flen;
// print core id on all lines so it is easy to grep
fprintf(log_file, "core%4" PRId64 ": ", p->get_id());
fprintf(log_file, "core%4" PRId32 ": ", p->get_id());
fprintf(log_file, "%1d ", priv);
commit_log_print_value(log_file, xlen, pc);

Loading…
Cancel
Save