aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-04-01 08:54:19 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2014-06-19 06:52:07 -0400
commit968889771749d8e730d794deed2bd2e363a98a54 (patch)
tree9b66ce30b8d3e456d96d31c346796b779fc14ac5
parenta5457e7bcf9a76ec5c2de5d311d9b0d3b724edc6 (diff)
KVM: emulate: simplify BitOp handling
Memory is always the destination for BitOp instructions. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--arch/x86/kvm/emulate.c2
1 files changed, 1 insertions, 1 deletions
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,
4079 mem_common: 4079 mem_common:
4080 *op = ctxt->memop; 4080 *op = ctxt->memop;
4081 ctxt->memopp = op; 4081 ctxt->memopp = op;
4082 if ((ctxt->d & BitOp) && op == &ctxt->dst) 4082 if (ctxt->d & BitOp)
4083 fetch_bit_operand(ctxt); 4083 fetch_bit_operand(ctxt);
4084 op->orig_val = op->val; 4084 op->orig_val = op->val;
4085 break; 4085 break;