x86emul: correct far branch handling for 64-bit mode
authorJan Beulich <jbeulich@suse.com>
Mon, 16 Dec 2019 16:37:09 +0000 (17:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Dec 2019 16:37:09 +0000 (17:37 +0100)
commit2d696d61452f83c03a38981302efbbea8a7dfc41
treecb1207a696ba266061d9dce455bc78add53b3040
parent787bda8eb85b0c6f8b3c81e3586cdf90cd4815f8
x86emul: correct far branch handling for 64-bit mode

AMD and friends explicitly specify that 64-bit operands aren't possible
for these insns. Nevertheless REX.W isn't fully ignored: It still
cancels a possible operand size override (0x66). Intel otoh explicitly
provides for 64-bit operands on the respective insn page of the SDM.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c