summary refs log tree commit diff stats
path: root/scripts/dump-guest-memory.py
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2013-11-06 19:51:21 +0100
committerRichard Henderson <rth@twiddle.net>2014-01-25 15:19:19 -0800
commit085bb5bb64069a16b843fca840f91cdfb3f40fda (patch)
treebdb7fc514599ac98f8c0b189c46543498e31d091 /scripts/dump-guest-memory.py
parent2a1137753f9618283ac40394a75976d18f608e39 (diff)
downloadfocaccia-qemu-085bb5bb64069a16b843fca840f91cdfb3f40fda.tar.gz
focaccia-qemu-085bb5bb64069a16b843fca840f91cdfb3f40fda.zip
tcg/i386: use movbe instruction in qemu_ldst routines
The movbe instruction has been added on some Intel Atom CPUs and on
recent Intel Haswell CPUs. It allows to load/store a value and at the
same time bswap it.

This patch detects the avaibility of this instruction and when available
use it in the qemu load/store routines in replacement of load/store +
bswap. Note that for 16-bit unsigned loads, movbe + movzw is basically the
same as movzw + bswap, so the patch doesn't touch this case.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
[RTH: Reduced the number of conditionals using "movop".]
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'scripts/dump-guest-memory.py')
0 files changed, 0 insertions, 0 deletions