format: Emit XACQUIRE/XRELEASE

As CMPXCHGD has a mandatory prefix table, it is absolutely necessary
that the presence of any tables does not modify any decoding state.
This commit is contained in:
Alexis Engelke
2021-01-23 14:35:08 +01:00
parent ab63a3c921
commit f17d84cee6
3 changed files with 43 additions and 2 deletions

View File

@@ -244,7 +244,6 @@ prefix_end:
// there is a REP prefix, then the 66h prefix is ignored here.
uint8_t mandatory_prefix = prefix_rep ? prefix_rep : !!prefix_66;
table_idx = table_walk(table_idx, mandatory_prefix, &kind);
prefix_rep = 0; // Don't include REP/REPNZ in instr flags
}
// Then, walk through ModR/M-encoded opcode extensions.