From: Luke Kenneth Casson Leighton Date: Fri, 19 Oct 2018 22:40:15 +0000 (+0100) Subject: stop addr++ in interactive loop X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cd073b3ab88637ba19b9b837bd26c0cadfa7482;p=riscv-isa-sim.git stop addr++ in interactive loop --- diff --git a/riscv/interactive.cc b/riscv/interactive.cc index afe6d13..adb9954 100644 --- a/riscv/interactive.cc +++ b/riscv/interactive.cc @@ -316,8 +316,10 @@ void sim_t::interactive_str(const std::string& cmd, const std::vectorload_uint8(addr++))) + while((ch = debug_mmu->load_uint8(addr))) { putchar(ch); + addr += 1; + } putchar('\n'); }