From a18ab66ad75d3da255880b2c89439786c95857ae Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 20 Oct 2018 00:37:59 +0100 Subject: [PATCH] whoops load_uint64 with auto returned sv_reg_t not uint64_t --- riscv/sim.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/sim.cc b/riscv/sim.cc index de57edf..242c9ff 100644 --- a/riscv/sim.cc +++ b/riscv/sim.cc @@ -218,7 +218,7 @@ void sim_t::idle() void sim_t::read_chunk(addr_t taddr, size_t len, void* dst) { assert(len == 8); - auto data = debug_mmu->load_uint64(taddr); + uint64_t data = debug_mmu->load_uint64(taddr); memcpy(dst, &data, sizeof data); } -- 2.30.2