aboutsummaryrefslogtreecommitdiff
path: root/riscv/interactive.cc
diff options
context:
space:
mode:
authorneuschaefer <j.neuschaefer@gmx.net>2016-06-03 22:45:05 +0200
committerAndrew Waterman <waterman@eecs.berkeley.edu>2016-06-03 13:45:05 -0700
commit906bbfae48713b9d7256eab37613e5b0ddc08133 (patch)
treedfe69ecbd5ee9f2ec4f02a93cf12a9f77e08814a /riscv/interactive.cc
parent127cf78387447aba8f6bd19783a0c66ae5f3791a (diff)
downloadspike-906bbfae48713b9d7256eab37613e5b0ddc08133.zip
spike-906bbfae48713b9d7256eab37613e5b0ddc08133.tar.gz
spike-906bbfae48713b9d7256eab37613e5b0ddc08133.tar.bz2
Minor usability improvements (#48)
* spike_main/disasm.cc: Print unknown CSR numbers in hex * interactive mode: Print "Unknown command" when appropriate
Diffstat (limited to 'riscv/interactive.cc')
-rw-r--r--riscv/interactive.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/interactive.cc b/riscv/interactive.cc
index 69f2461..d24ec50 100644
--- a/riscv/interactive.cc
+++ b/riscv/interactive.cc
@@ -100,6 +100,8 @@ void sim_t::interactive()
{
if(funcs.count(cmd))
(this->*funcs[cmd])(cmd, args);
+ else
+ fprintf(stderr, "Unknown command %s\n", cmd.c_str());
}
catch(trap_t t) {}
}