From 9cd073b3ab88637ba19b9b837bd26c0cadfa7482 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 19 Oct 2018 23:40:15 +0100 Subject: [PATCH] stop addr++ in interactive loop --- riscv/interactive.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'); } -- 2.30.2