]> xenbits.xensource.com Git - xen.git/commit
x86/emul: Correct the decoding of SReg3 operands
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 23 Sep 2016 13:48:27 +0000 (14:48 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 26 Oct 2016 13:04:12 +0000 (14:04 +0100)
commit0888d36bb23f7365ce12b03127fd0fb2661ec90e
tree33d1733c66bce93612ffab1ce98df8d8f72d4615
parent22bc820abb5200729dc387e6a0653c31daecfef3
x86/emul: Correct the decoding of SReg3 operands

REX.R is ignored when considering segment register operands, and needs masking
out first.

While fixing this, reorder the user segments in x86_segment to match SReg3
encoding.  This avoids needing a translation table between hardware ordering
and Xen's ordering.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/tests/x86_emulator/x86_emulate.c
xen/arch/x86/x86_emulate/x86_emulate.c
xen/arch/x86/x86_emulate/x86_emulate.h