]> xenbits.xensource.com Git - xen.git/commit
x86emul: don't special case fetching unsigned 8-bit immediates
authorJan Beulich <jbeulich@suse.com>
Fri, 12 Aug 2016 14:57:07 +0000 (16:57 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 12 Aug 2016 14:57:07 +0000 (16:57 +0200)
commit989cdfa9b484c2c2eb41f779fa6df7fd29a00e81
tree625c7207dde4ed343ed06c33ebeaf965a8e91945
parent3c71d160677fa4f4b769f33fe201ecd9219ab234
x86emul: don't special case fetching unsigned 8-bit immediates

These can be made work using SrcImmByte, making sure the low 8 bits of
src.val get suitably zero extended upon consumption. SHLD and SHRD
require a little more adjustment: Their source operands get changed
away from SrcReg, handling the register access "manually" instead of
the insn byte fetching.

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