KVM: emulate: fix harmless typo in MMX decoding
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 May 2014 12:03:29 +0000 (14:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Jun 2014 10:52:07 +0000 (12:52 +0200)
It was using the wrong member of the union.

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

index ea976e478dcabc7b252e9c186ba931c364bad5dd..8a1796b1eef257cb1a2d03354c0ce3d3a5b34713 100644 (file)
@@ -1093,7 +1093,7 @@ static int decode_modrm(struct x86_emulate_ctxt *ctxt,
                if (ctxt->d & Mmx) {
                        op->type = OP_MM;
                        op->bytes = 8;
-                       op->addr.xmm = ctxt->modrm_rm & 7;
+                       op->addr.mm = ctxt->modrm_rm & 7;
                        return rc;
                }
                fetch_register_operand(op);