[llvm-commits] [llvm] r124709 - /llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
Sean Callanan
scallanan at apple.com
Tue Feb 1 17:09:03 PST 2011
Author: spyffe
Date: Tue Feb 1 19:09:02 2011
New Revision: 124709
URL: http://llvm.org/viewvc/llvm-project?rev=124709&view=rev
Log:
Fixed a bug in the disassembler where the mandatory 0x66
prefix would be misinterpreted in some cases on 32-bit
x86 platforms. Thanks to Olivier Meurant for identifying
the bug.
Modified:
llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
Modified: llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c?rev=124709&r1=124708&r2=124709&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c (original)
+++ llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c Tue Feb 1 19:09:02 2011
@@ -388,6 +388,7 @@
}
} else {
unconsumeByte(insn);
+ insn->necessaryPrefixLocation = insn->readerCursor - 1;
}
if (insn->mode == MODE_16BIT) {
More information about the llvm-commits
mailing list