parseinstrs: Respect mem-only/reg-only encodings

This commit is contained in:
Alexis Engelke
2021-01-10 12:02:08 +01:00
parent 111769832f
commit af9188e267
2 changed files with 2 additions and 5 deletions

View File

@@ -358,9 +358,6 @@ prefix_end:
if (mod == 3 || is_cr || is_dr)
{
if (op_modrm->misc == FD_RT_MEM)
return FD_ERR_UD;
uint8_t reg_idx = rm;
if (LIKELY(op_modrm->misc == FD_RT_GPL || op_modrm->misc == FD_RT_VEC))
reg_idx += prefix_rex & PREFIX_REXB ? 8 : 0;