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:
1b797b1
)
Don't treat RVC NOP as illegal instruction
author
Andrew Waterman
<waterman@cs.berkeley.edu>
Tue, 12 Jul 2016 19:43:30 +0000
(12:43 -0700)
committer
Andrew Waterman
<waterman@cs.berkeley.edu>
Tue, 12 Jul 2016 19:43:30 +0000
(12:43 -0700)
riscv/processor.cc
patch
|
blob
|
history
diff --git
a/riscv/processor.cc
b/riscv/processor.cc
index 50906f64c6e54ae0f8d4f7a063aee55b841fb263..8c89e3f6aedd2923077bb2b3c181f18704771f2b 100644
(file)
--- a/
riscv/processor.cc
+++ b/
riscv/processor.cc
@@
-565,7
+565,7
@@
void processor_t::build_opcode_map()
std::sort(instructions.begin(), instructions.end(), cmp());
for (size_t i = 0; i < OPCODE_CACHE_SIZE; i++)
- opcode_cache[i] = {
1
, 0, &illegal_instruction, &illegal_instruction};
+ opcode_cache[i] = {
0
, 0, &illegal_instruction, &illegal_instruction};
}
void processor_t::register_extension(extension_t* x)