projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0e63cb
)
correctly parse extension for spike-disasm
author
Yunsup Lee
<yunsup@cs.berkeley.edu>
Thu, 12 Mar 2015 17:59:09 +0000
(10:59 -0700)
committer
Yunsup Lee
<yunsup@cs.berkeley.edu>
Thu, 12 Mar 2015 17:59:09 +0000
(10:59 -0700)
spike_main/spike-dasm.cc
patch
|
blob
|
history
diff --git
a/spike_main/spike-dasm.cc
b/spike_main/spike-dasm.cc
index 7f15db0bb168be15967d1b14572cba92f75087bb..aecaa0a05ec3c3c13cf174572fe8be3c38949414 100644
(file)
--- a/
spike_main/spike-dasm.cc
+++ b/
spike_main/spike-dasm.cc
@@
-22,6
+22,12
@@
int main(int argc, char** argv)
std::function<extension_t*()> extension;
option_parser_t parser;
parser.option(0, "extension", 1, [&](const char* s){extension = find_extension(s);});
+ parser.parse(argv);
+
+ if (extension) {
+ for (auto disasm_insn : extension()->get_disasms())
+ d.add_insn(disasm_insn);
+ }
while (getline(cin, s))
{