x86emul: introduce SrcEax for XCHG
authorJan Beulich <jbeulich@suse.com>
Wed, 17 Aug 2016 13:34:26 +0000 (15:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 17 Aug 2016 13:34:26 +0000 (15:34 +0200)
commitc826567bbcf8f32cd9c08ba74cbcd29b60ad80d2
treef32e4871e3116bbdb4418dcd64c197b3c6ee84f9
parent3fbb6f0a31fe0c0534350e7b379d4037aaaff4fe
x86emul: introduce SrcEax for XCHG

Just like said in commit c0bc0adf24 ("x86emul: use DstEax where
possible"): While it avoids just a few instructions, we should
nevertheless make use of generic code as much as possible. Here we can
arrange for that by simply introducing SrcEax (which requires no other
code adjustments).

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