aboutsummaryrefslogtreecommitdiff
path: root/riscv/interactive.cc
diff options
context:
space:
mode:
authorYunsup Lee <yunsup@cs.berkeley.edu>2013-10-18 17:34:54 -0700
committerYunsup Lee <yunsup@cs.berkeley.edu>2013-10-18 17:34:54 -0700
commitcb6cfc5f3ad18280c6dce1f03ee4ff87e4677dad (patch)
tree2f2416b151713f95aaa0d24d7a5163330c3d0d90 /riscv/interactive.cc
parent9543d241b320cb1c4982949aa6d012940c8f5377 (diff)
downloadspike-cb6cfc5f3ad18280c6dce1f03ee4ff87e4677dad.zip
spike-cb6cfc5f3ad18280c6dce1f03ee4ff87e4677dad.tar.gz
spike-cb6cfc5f3ad18280c6dce1f03ee4ff87e4677dad.tar.bz2
refactor disassembler, and add hwacha disassembler
Diffstat (limited to 'riscv/interactive.cc')
-rw-r--r--riscv/interactive.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/riscv/interactive.cc b/riscv/interactive.cc
index a1b7dd0..ad38ace 100644
--- a/riscv/interactive.cc
+++ b/riscv/interactive.cc
@@ -56,7 +56,8 @@ void sim_t::interactive()
if (!(ss >> cmd))
{
- step(1, true);
+ set_procs_debug(true);
+ step(1);
continue;
}
@@ -101,8 +102,9 @@ void sim_t::interactive_run(const std::string& cmd, const std::vector<std::strin
{
size_t steps = args.size() ? atoll(args[0].c_str()) : -1;
ctrlc_pressed = false;
+ set_procs_debug(noisy);
for (size_t i = 0; i < steps && !ctrlc_pressed; i++)
- step(1, noisy);
+ step(1);
}
void sim_t::interactive_quit(const std::string& cmd, const std::vector<std::string>& args)
@@ -269,6 +271,7 @@ void sim_t::interactive_until(const std::string& cmd, const std::vector<std::str
}
catch (trap_t t) {}
- step(1, false);
+ set_procs_debug(false);
+ step(1);
}
}