diff options
author | dim <dim@FreeBSD.org> | 2014-05-11 18:24:26 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-05-11 18:24:26 +0000 |
commit | 87ba4fbed530c9d0dff7505d121035f5ed09c9f3 (patch) | |
tree | 9f9245264c66971905eab3af40b7fc82e38fc2ad /lib/Target/X86/Disassembler/X86DisassemblerDecoder.c | |
parent | bbe9ac81c3fe3a3ea47d81758276b4432d28786a (diff) | |
download | FreeBSD-src-87ba4fbed530c9d0dff7505d121035f5ed09c9f3.zip FreeBSD-src-87ba4fbed530c9d0dff7505d121035f5ed09c9f3.tar.gz |
Vendor import of llvm RELEASE_34/dot1-final tag r208032 (effectively, 3.4.1 release):
https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_34/dot1-final@208032
Diffstat (limited to 'lib/Target/X86/Disassembler/X86DisassemblerDecoder.c')
-rw-r--r-- | lib/Target/X86/Disassembler/X86DisassemblerDecoder.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c b/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c index c81a857..16ee0d3 100644 --- a/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c +++ b/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c @@ -1065,6 +1065,7 @@ static int readSIB(struct InternalInstruction* insn) { switch (base) { case 0x5: + case 0xd: switch (modFromModRM(insn->modRM)) { case 0x0: insn->eaDisplacement = EA_DISP_32; @@ -1072,13 +1073,11 @@ static int readSIB(struct InternalInstruction* insn) { break; case 0x1: insn->eaDisplacement = EA_DISP_8; - insn->sibBase = (insn->addressSize == 4 ? - SIB_BASE_EBP : SIB_BASE_RBP); + insn->sibBase = (SIBBase)(sibBaseBase + base); break; case 0x2: insn->eaDisplacement = EA_DISP_32; - insn->sibBase = (insn->addressSize == 4 ? - SIB_BASE_EBP : SIB_BASE_RBP); + insn->sibBase = (SIBBase)(sibBaseBase + base); break; case 0x3: debug("Cannot have Mod = 0b11 and a SIB byte"); |