KVM: emulate: simplify BitOp handling
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Apr 2014 12:54:19 +0000 (14:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Jun 2014 10:52:07 +0000 (12:52 +0200)
Memory is always the destination for BitOp instructions.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c

index bc670675223de3329a72f33a1c5a889bf149e65d..ea976e478dcabc7b252e9c186ba931c364bad5dd 100644 (file)
@@ -4079,7 +4079,7 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op,
        mem_common:
                *op = ctxt->memop;
                ctxt->memopp = op;
-               if ((ctxt->d & BitOp) && op == &ctxt->dst)
+               if (ctxt->d & BitOp)
                        fetch_bit_operand(ctxt);
                op->orig_val = op->val;
                break;