summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_emulate.h
diff options
context:
space:
mode:
authorAvi Kivity2010-08-01 14:40:19 +0200
committerAvi Kivity2010-10-24 10:50:40 +0200
commit2dbd0dd711e6c0ca6a2be9e6d93bbeb339386638 (patch)
treea4b4cd21579263b64c4287489a59f301d2c5e667 /arch/x86/include/asm/kvm_emulate.h
parentKVM: x86 emulator: change invlpg emulation to use src.mem.addr (diff)
downloadkernel-qcow2-linux-2dbd0dd711e6c0ca6a2be9e6d93bbeb339386638.tar.gz
kernel-qcow2-linux-2dbd0dd711e6c0ca6a2be9e6d93bbeb339386638.tar.xz
kernel-qcow2-linux-2dbd0dd711e6c0ca6a2be9e6d93bbeb339386638.zip
KVM: x86 emulator: Decode memory operands directly into a 'struct operand'
Since modrm operand can be either register or memory, decoding it into a 'struct operand', which can represent both, is simpler. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_emulate.h')
-rw-r--r--arch/x86/include/asm/kvm_emulate.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h
index e425444658e8..1e4a72ce301a 100644
--- a/arch/x86/include/asm/kvm_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
@@ -203,9 +203,6 @@ struct decode_cache {
u8 modrm_rm;
u8 modrm_seg;
bool rip_relative;
- unsigned long modrm_ea;
- void *modrm_ptr;
- unsigned long modrm_val;
struct fetch_cache fetch;
struct read_cache io_read;
struct read_cache mem_read;