]> Pileus Git - ~andy/linux/commitdiff
KVM: x86 emulator: drop use_modrm_ea
authorAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 10:53:19 +0000 (13:53 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:34 +0000 (10:50 +0200)
Unused (and has never been).

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

index 0c835f7eb308b336d99684f90ab9dcea70df43d1..e425444658e8ea7a66af6a4eecac4ac6e0387296 100644 (file)
@@ -202,7 +202,6 @@ struct decode_cache {
        u8 modrm_reg;
        u8 modrm_rm;
        u8 modrm_seg;
-       u8 use_modrm_ea;
        bool rip_relative;
        unsigned long modrm_ea;
        void *modrm_ptr;
index 898a55ba3e14b40811a9e1c88249bc0bf0f4442c..7d2c715f1a2adc8193b2dc2a1e917cd816bb7b01 100644 (file)
@@ -597,7 +597,6 @@ static int decode_modrm(struct x86_emulate_ctxt *ctxt,
        c->modrm_reg |= (c->modrm & 0x38) >> 3;
        c->modrm_rm |= (c->modrm & 0x07);
        c->modrm_ea = 0;
-       c->use_modrm_ea = 1;
        c->modrm_seg = VCPU_SREG_DS;
 
        if (c->modrm_mod == 3) {