From 8e023fa06a47cca7c7da50b5358ed9dc48f579f9 Mon Sep 17 00:00:00 2001 From: Ben Marshall Date: Wed, 28 Jul 2021 11:50:57 +0100 Subject: scalar-crypto: Remove remaining RV*_ONLY code - Remove remaining code which allowed spike to differentiate between RV32 and RV64 instructions which share an encoding. On branch scalar-crypto Changes to be committed: modified: disasm/disasm.cc modified: riscv/processor.cc --- disasm/disasm.cc | 8 -------- 1 file changed, 8 deletions(-) (limited to 'disasm/disasm.cc') diff --git a/disasm/disasm.cc b/disasm/disasm.cc index fe1e24e..b6ad437 100644 --- a/disasm/disasm.cc +++ b/disasm/disasm.cc @@ -447,11 +447,7 @@ disassembler_t::disassembler_t(int xlen) #define DECLARE_INSN(code, match, mask) \ const uint32_t match_##code = match; \ const uint32_t mask_##code = mask; - #define DECLARE_RV32_ONLY(code) {} - #define DECLARE_RV64_ONLY(code) {} #include "encoding.h" - #undef DECLARE_RV64_INSN - #undef DECLARE_RV32_INSN #undef DECLARE_INSN // explicit per-instruction disassembly @@ -1682,11 +1678,7 @@ disassembler_t::disassembler_t(int xlen) // provide a default disassembly for all instructions as a fallback #define DECLARE_INSN(code, match, mask) \ add_insn(new disasm_insn_t(#code " (args unknown)", match, mask, {})); - #define DECLARE_RV32_ONLY(code) {} - #define DECLARE_RV64_ONLY(code) {} #include "encoding.h" - #undef DECLARE_RV64_INSN - #undef DECLARE_RV32_INSN #undef DECLARE_INSN } -- cgit v1.1