mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 07:34:06 +00:00
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:
parent
37c79c5942
commit
89e59e6343
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user