Browse Source

2005-01-12 H.J. Lu <hongjiu.lu@intel.com>

* i386-dis.c (OP_E): Don't ignore scale in SIB for 64 bit mode.
binutils-csl-arm-2005q1-branch
H.J. Lu 22 years ago
parent
commit
9df48ba9fd
  1. 4
      opcodes/ChangeLog
  2. 4
      opcodes/i386-dis.c

4
opcodes/ChangeLog

@ -1,3 +1,7 @@
2005-01-12 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (OP_E): Don't ignore scale in SIB for 64 bit mode.
2005-01-12 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (OP_E): Ignore scale when index == 0x4 in SIB.

4
opcodes/i386-dis.c

@ -3192,8 +3192,8 @@ OP_E (int bytemode, int sizeflag)
havesib = 1;
FETCH_DATA (the_info, codep + 1);
index = (*codep >> 3) & 7;
if (index != 0x4)
/* When INDEX == 0x4, scale is ignored. */
if (mode_64bit || index != 0x4)
/* When INDEX == 0x4 in 32 bit mode, SCALE is ignored. */
scale = (*codep >> 6) & 3;
base = *codep & 7;
USED_REX (REX_EXTY);

Loading…
Cancel
Save