From: Andrew Waterman Date: Tue, 12 Jul 2016 19:43:30 +0000 (-0700) Subject: Don't treat RVC NOP as illegal instruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da0bc312aefa12960d65dd0e12aa87ad9a771f2d;p=riscv-isa-sim.git Don't treat RVC NOP as illegal instruction --- 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)