Commit 52db3698 authored by Miaohe Lin's avatar Miaohe Lin Committed by Paolo Bonzini
Browse files

KVM: X86: Add 'else' to unify fastop and execute call path



It also helps eliminate some duplicated code.

Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Reviewed-by: default avatarSean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 91b0d268
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -5683,11 +5683,9 @@ special_insn:
		if (ctxt->d & Fastop) {
			void (*fop)(struct fastop *) = (void *)ctxt->execute;
			rc = fastop(ctxt, fop);
			if (rc != X86EMUL_CONTINUE)
				goto done;
			goto writeback;
		}
		} else {
			rc = ctxt->execute(ctxt);
		}
		if (rc != X86EMUL_CONTINUE)
			goto done;
		goto writeback;