diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2010-03-06 18:02:31 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-03-10 08:43:43 +0100 |
commit | b16f827bdf7444b8cd338b9ecb654b4752f47225 (patch) | |
tree | 03ed0f417f2ba6db17a230b5e19430ada973e328 /m68k-semi.c | |
parent | 1298cb6804d6073ef3cb9c06e663ee59d06d92cc (diff) |
target-i386: fix SIB decoding with index = 4
A SIB byte with an index of 4 means "no scaled index", even if the scale
value is not 0. In 64-bit mode, if REX.X is used, an index of 4 selects
%r12. This is correctly handled by the computation of the index variable,
which includes the index bits, and also the REX.X prefix:
index = ((code >> 3) & 7) | REX_X(s);
Thanks to Avi Kivity, Jamie Lokier and Malc for the analysis of the
problem and the initial patch.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'm68k-semi.c')
0 files changed, 0 insertions, 0 deletions