instrs: Remove incorrect NFx specifiers

The new trie implementation is more flexible and allows omitting
prefixes even with a ModRM specifier in the opcode. Use this flexibility
to simplify instruction descriptions.
This commit is contained in:
Alexis Engelke
2021-01-23 13:20:57 +01:00
parent dc399390a4
commit 85fdaa3a9b
3 changed files with 30 additions and 19 deletions

View File

@@ -440,7 +440,7 @@ def encode_table(entries):
mnemonics = defaultdict(list)
mnemonics["FE_NOP"].append(("NP", 0, 0, "0x90"))
for weak, opcode, desc in entries:
if weak or "ONLY32" in desc.flags:
if "ONLY32" in desc.flags or desc.mnemonic[:9] == "RESERVED_":
continue
opsizes = {8} if "SIZE_8" in desc.flags else {16, 32, 64}