x86_emulate: MOVSXD must read source operand just once
authorJan Beulich <jbeulich@suse.com>
Fri, 20 Sep 2013 09:03:12 +0000 (11:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 20 Sep 2013 09:03:12 +0000 (11:03 +0200)
commitbc6c4576616ef9cf62667a5fb315cd984499d51c
tree05dba9af581130f3634d1cf18e37999f25502bdf
parentcbad67c5d291a3428bed341909e22953ea0d80df
x86_emulate: MOVSXD must read source operand just once

... for the case of accessing MMIO.

Also streamline the ARPL emulation a little, and add tests for both
instructions (the MOVSXD one requires a few other adjustments, as we
now need to run in a mode where the emulator's mode_64bit() returns
true).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
tools/tests/x86_emulator/test_x86_emulator.c
xen/arch/x86/x86_emulate/x86_emulate.c