qemu/target-i386
Aurelien Jarno b16f827bdf 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>
2010-03-10 08:43:43 +01:00
..
cpu.h Add cpu model configuration support.. 2010-02-22 16:16:17 -06:00
exec.h target-i386: fix crash on x86 32bit linux host with hw breakpoint exceptions 2010-02-28 19:20:02 +01:00
helper_template.h Update to a hopefully more future proof FSF address 2009-07-16 20:47:01 +00:00
helper.c target-i386: fix crash on x86 32bit linux host with hw breakpoint exceptions 2010-02-28 19:20:02 +01:00
helper.h target-i386: implement lzcnt emulation 2009-10-23 17:10:36 +02:00
kvm.c KVM: x86: Restrict writeback of VCPU state 2010-03-04 00:29:30 -03:00
machine.c KVM: Rework VCPU state writeback API 2010-03-04 00:29:28 -03:00
op_helper.c Move ioport.h out of cpu-all.h 2010-03-01 03:29:21 +00:00
ops_sse_header.h target-i386: add SSE4a instruction support 2009-10-04 14:09:41 +02:00
ops_sse.h target-i386: add SSE4a instruction support 2009-10-04 14:09:41 +02:00
svm.h reworked SVM interrupt handling logic - fixed vmrun EIP saved value - reworked cr8 handling - added CPUState.hflags2 2008-06-04 17:02:19 +00:00
TODO Unbreak large mem support by removing kqemu 2009-08-24 08:02:55 -05:00
translate.c target-i386: fix SIB decoding with index = 4 2010-03-10 08:43:43 +01:00