decode: Move instr-width to legacy path

Very few instructions set use instrwidth, so move this check as well to
the legacy path. The only affected common instructions are RET and
LEAVE.
This commit is contained in:
Alexis Engelke
2023-04-24 08:55:56 +02:00
parent 48f886e130
commit 6abc971576
2 changed files with 7 additions and 7 deletions

View File

@@ -767,9 +767,9 @@ skip_modrm:
return FD_ERR_UD;
}
instr->operandsz = 0;
} else {
instr->operandsz = UNLIKELY(DESC_INSTR_WIDTH(desc)) ? op_size - 1 : 0;
} else {
instr->operandsz = 0;
}
instr->size = off;