Fixed a bug in the X86 disassembler where a member of the

X86 instruction decode structure was being interpreted as
being in units of bits, although it is actually stored in
units of bytes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sean Callanan 2011-02-21 21:55:05 +00:00
parent 37c79c5942
commit 89e59e6343
2 changed files with 5 additions and 5 deletions

View File

@ -168,16 +168,16 @@ static void translateImmediate(MCInst &mcInst, uint64_t immediate,
switch (insn.displacementSize) {
default:
break;
case 8:
case 1:
type = TYPE_MOFFS8;
break;
case 16:
case 2:
type = TYPE_MOFFS16;
break;
case 32:
case 4:
type = TYPE_MOFFS32;
break;
case 64:
case 8:
type = TYPE_MOFFS64;
break;
}

View File

@ -399,7 +399,7 @@ struct InternalInstruction {
/* The segment override type */
SegmentOverride segmentOverride;
/* Sizes of various critical pieces of data */
/* Sizes of various critical pieces of data, in bytes */
uint8_t registerSize;
uint8_t addressSize;
uint8_t displacementSize;