From da0bc312aefa12960d65dd0e12aa87ad9a771f2d Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Tue, 12 Jul 2016 12:43:30 -0700 Subject: [PATCH] Don't treat RVC NOP as illegal instruction --- riscv/processor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/processor.cc b/riscv/processor.cc index 50906f6..8c89e3f 100644 --- 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) -- 2.30.2