In addition to LEA, allow CL* and PREFETCH* instructions to have memory operand of any size

This commit is contained in:
kobalicek
2021-06-27 00:39:18 +02:00
parent c329fa7ce0
commit 0a709c7a28
2 changed files with 1568 additions and 1566 deletions

View File

@@ -1675,8 +1675,8 @@ class InstSignatureTable extends core.Task {
}
if (mem) {
op.flags[mem] = true;
// HACK: Allow LEA to use any memory size.
if (inst.name === "lea") {
// HACK: Allow LEA|CL*|PREFETCH* to use any memory size.
if (/^(cldemote|clwb|clflush\w*|lea|prefetch\w*)$/.test(inst.name)) {
op.flags.mem = true;
Object.assign(op.flags, MemOp);
}