From baa1f128f81c50f02f12411a4fb4210f2989f615 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 15 Oct 2018 12:56:24 +0100 Subject: [PATCH] fix compiler warnings on printfs --- riscv/sv_insn_redirect.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()]); -- 2.30.2