diff options
Diffstat (limited to 'disasm')
-rw-r--r-- | disasm/disasm.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/disasm/disasm.cc b/disasm/disasm.cc index e2d6277..691ec28 100644 --- a/disasm/disasm.cc +++ b/disasm/disasm.cc @@ -411,7 +411,11 @@ 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 @@ -1332,7 +1336,11 @@ 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 } |