Don't treat RVC NOP as illegal instruction
authorAndrew Waterman <waterman@cs.berkeley.edu>
Tue, 12 Jul 2016 19:43:30 +0000 (12:43 -0700)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Tue, 12 Jul 2016 19:43:30 +0000 (12:43 -0700)
riscv/processor.cc

index 50906f64c6e54ae0f8d4f7a063aee55b841fb263..8c89e3f6aedd2923077bb2b3c181f18704771f2b 100644 (file)
@@ -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)