On 07/25/2010 09:20 PM, Mohammed Gamal wrote:
+       if (c->op_bytes == 4)
+               temp_eflags = ((temp_eflags&  0x257fd5) | (ctxt->eflags&  
0x1a0000));

Should this do also

if (c->op_bytes == 2)
    temp_eflags = ((temp_eflags & 0x7fd5) | (ctxt->eflags & ~0xffffL));

?

Or better, extract a new function computing the mask from emulate_popf, which would do something similar to what I wrote above.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to