diff options
author | Andrew Waterman <andrew@sifive.com> | 2021-03-08 14:38:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-08 14:38:34 -0800 |
commit | 06f630cb30c60c32452058710e98c7b05106b7f5 (patch) | |
tree | 237c8e359116d06056a742bd7b7868e8c10f5fcf /disasm/disasm.cc | |
parent | 6d5a351a9833cf7555e6b91019c481b9e55b47bf (diff) | |
parent | da7748e6d88c75559e8f3c09067a502fe950136e (diff) | |
download | spike-06f630cb30c60c32452058710e98c7b05106b7f5.zip spike-06f630cb30c60c32452058710e98c7b05106b7f5.tar.gz spike-06f630cb30c60c32452058710e98c7b05106b7f5.tar.bz2 |
Merge pull request #649 from ben-marshall/scalar-crypto-fix
Scalar crypto fixes
Diffstat (limited to 'disasm/disasm.cc')
-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 ff8bddb..c6d8520 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 } |