Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion arch/X86/X86Mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,6 @@ static bool valid_repne(cs_struct *h, unsigned int opcode)
case X86_INS_MOVSB:
case X86_INS_MOVSS:
case X86_INS_MOVSW:
case X86_INS_MOVSD:
case X86_INS_MOVSQ:

case X86_INS_LODSB:
Expand All @@ -1645,6 +1644,11 @@ static bool valid_repne(cs_struct *h, unsigned int opcode)

return true;

case X86_INS_MOVSD:
if (opcode == X86_MOVSW) // REP MOVSB
return true;
return false;

case X86_INS_CMPSD:
if (opcode == X86_CMPSL) // REP CMPSD
return true;
Expand Down