KVM: x86 emulator: SSE support
[deliverable/linux.git] / arch / x86 / include / asm / kvm_emulate.h
index 4c0e682261138914e0f059dba74d46505d551bdd..48693f0d38424217f35de70f734e33205cced957 100644 (file)
@@ -162,9 +162,11 @@ struct x86_emulate_ops {
        void (*put_fpu)(struct x86_emulate_ctxt *ctxt); /* reenables preempt */
 };
 
+typedef u32 __attribute__((vector_size(16))) sse128_t;
+
 /* Type, address-of, and value of an instruction's operand. */
 struct operand {
-       enum { OP_REG, OP_MEM, OP_IMM, OP_NONE } type;
+       enum { OP_REG, OP_MEM, OP_IMM, OP_XMM, OP_NONE } type;
        unsigned int bytes;
        union {
                unsigned long orig_val;
@@ -176,11 +178,13 @@ struct operand {
                        ulong ea;
                        unsigned seg;
                } mem;
+               unsigned xmm;
        } addr;
        union {
                unsigned long val;
                u64 val64;
                char valptr[sizeof(unsigned long) + 2];
+               sse128_t vec_val;
        };
 };
 
This page took 0.05717 seconds and 5 git commands to generate.