From: Paolo Bonzini Date: Tue, 1 Apr 2014 12:54:19 +0000 (+0200) Subject: KVM: emulate: simplify BitOp handling X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=968889771749d8e730d794deed2bd2e363a98a54;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git KVM: emulate: simplify BitOp handling Memory is always the destination for BitOp instructions. Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index bc670675223d..ea976e478dca 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -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;