Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96888977 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: emulate: simplify BitOp handling



Memory is always the destination for BitOp instructions.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent a5457e7b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -4079,7 +4079,7 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op,
	mem_common:
	mem_common:
		*op = ctxt->memop;
		*op = ctxt->memop;
		ctxt->memopp = op;
		ctxt->memopp = op;
		if ((ctxt->d & BitOp) && op == &ctxt->dst)
		if (ctxt->d & BitOp)
			fetch_bit_operand(ctxt);
			fetch_bit_operand(ctxt);
		op->orig_val = op->val;
		op->orig_val = op->val;
		break;
		break;