From 475e04da00cae32f34dffddc64c514a2a9729f72 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Thu, 8 Oct 2015 15:58:52 +0800 Subject: [PATCH] x86: fix the leftover prefixPresent[] --- arch/X86/X86DisassemblerDecoder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/X86/X86DisassemblerDecoder.c b/arch/X86/X86DisassemblerDecoder.c index d602f3ed..4038e2ad 100644 --- a/arch/X86/X86DisassemblerDecoder.c +++ b/arch/X86/X86DisassemblerDecoder.c @@ -1307,9 +1307,9 @@ static int getID(struct InternalInstruction *insn) */ if (insn->opcodeType == ONEBYTE && ((insn->opcode & 0xFC) == 0xA0)) { /* Make sure we observed the prefixes in any position. */ - if (insn->prefixPresent[0x67]) + if (insn->isPrefix67) attrMask |= ATTR_ADSIZE; - if (insn->prefixPresent[0x66]) + if (insn->isPrefix66) attrMask |= ATTR_OPSIZE; /* In 16-bit, invert the attributes. */ @@ -2119,7 +2119,7 @@ static int readOperands(struct InternalInstruction *insn) } // return True if instruction is illegal to use with prefixes -// This also check & fix the prefixPresent[] when a prefix is irrelevant. +// This also check & fix the isPrefixNN when a prefix is irrelevant. static bool checkPrefix(struct InternalInstruction *insn) { // LOCK prefix