From: Luke Kenneth Casson Leighton Date: Fri, 28 Jun 2019 09:47:48 +0000 (+0100) Subject: printf wrong args X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e993993f628bd5707e93e76ade3986352ebacf7e;p=riscv-isa-sim.git printf wrong args --- diff --git a/riscv/processor.cc b/riscv/processor.cc index fcfdb6d..1b75e13 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -902,7 +902,7 @@ reg_t processor_t::get_csr(int which) case CSR_SV_CFG: return (state.sv().state_bank) | (state.sv().state_size<<3); case CSR_SV_STATE: - fprintf(stderr, "get CSR_SV_STATE vl %d mvl %d subvl %d\n", + fprintf(stderr, "get CSR_SV_STATE vl %ld mvl %ld subvl %ld\n", state.sv().vl, state.sv().mvl, state.sv().subvl);