From: Luke Kenneth Casson Leighton Date: Mon, 15 Oct 2018 11:56:24 +0000 (+0100) Subject: fix compiler warnings on printfs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=baa1f128f81c50f02f12411a4fb4210f2989f615;p=riscv-isa-sim.git fix compiler warnings on printfs --- diff --git a/riscv/sv_insn_redirect.cc b/riscv/sv_insn_redirect.cc index 4ff8ad1..7e1f1cd 100644 --- a/riscv/sv_insn_redirect.cc +++ b/riscv/sv_insn_redirect.cc @@ -72,9 +72,9 @@ reg_t sv_proc_t::get_rs2() reg_t sv_proc_t::get_rvc_rs1s() { - fprintf(stderr, "get_rvc_rs1s %d\n", _insn->rvc_rs1s()); + fprintf(stderr, "get_rvc_rs1s %ld\n", _insn->rvc_rs1s()); sv_reg_entry *r = _insn->get_regentry(_insn->_rvc_rs1s(), true); - fprintf(stderr, "active %d vec %d map %d\n", + fprintf(stderr, "active %d vec %d map %ld\n", r->active, r->isvec, r->regidx); return (_insn->p->get_state()->XPR[_insn->rvc_rs1s()]);