Skip to content
Snippets Groups Projects
Commit 0d7cdee8 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: x86 emulator: Specialize decoding for insns with 66/f2/f3 prefixes


Most SIMD instructions use the 66/f2/f3 prefixes to distinguish between
different variants of the same instruction.  Usually the encoding is quite
regular, but in some cases (including non-SIMD instructions) the prefixes
generate very different instructions.  Examples include XCHG/PAUSE,
MOVQ/MOVDQA/MOVDQU, and MOVBE/CRC32.

Allow the emulator to handle these special cases by splitting such opcodes
into groups, with different decode flags and execution functions for different
prefixes.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 5037f6f3
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment