KVM: x86 emulator: do not munge rep prefix
authorAvi Kivity <avi@redhat.com>
Wed, 20 Jan 2010 14:00:35 +0000 (16:00 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:56:58 +0000 (07:56 -0400)
commit1d6b114f20d06ac0749686e4d7b7c7913d9116db
tree2be22fb5ba4fb76a73120776488a6e7ee4ba5bdc
parentcef4dea07f6720b36cc93e18a2e68be4bdb71a92
KVM: x86 emulator: do not munge rep prefix

Currently we store a rep prefix as 1 or 2 depending on whether it is a REPE or
REPNE.  Since sse instructions depend on the prefix value, store it as the
original opcode to simplify things further on.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c