x86: add more valid instructions for LOCK prefix

test2
Andrew Wesie 10 years ago
parent beb3248c26
commit 5de09479a6
  1. 19
      arch/X86/X86DisassemblerDecoder.c

@ -2038,6 +2038,24 @@ static bool invalidPrefix(struct InternalInstruction *insn)
case X86_ADCX32rm:
case X86_ADCX64rm:
// ADD
case X86_ADD16mi:
case X86_ADD16mi8:
case X86_ADD16mr:
case X86_ADD16rm:
case X86_ADD32mi:
case X86_ADD32mi8:
case X86_ADD32mr:
case X86_ADD32rm:
case X86_ADD64mi32:
case X86_ADD64mi8:
case X86_ADD64mr:
case X86_ADD64rm:
case X86_ADD82_8mi8:
case X86_ADD8mi:
case X86_ADD8mr:
case X86_ADD8rm:
// AND
case X86_AND16mi:
case X86_AND16mi8:
@ -2085,6 +2103,7 @@ static bool invalidPrefix(struct InternalInstruction *insn)
case X86_CMPXCHG32rm:
case X86_CMPXCHG64rm:
case X86_CMPXCHG8rm:
case X86_CMPXCHG8B:
// INC
case X86_INC16m:

Loading…
Cancel
Save