[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] x86_emulate: set the operand size for SMSW/reg writeback.
x86_emulate: set the operand size for SMSW/reg writeback. Otherwise it defaults to 0 bytes. Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx> diff -r d1631540bcc4 xen/arch/x86/x86_emulate/x86_emulate.c --- a/xen/arch/x86/x86_emulate/x86_emulate.c Tue Jan 18 17:23:24 2011 +0000 +++ b/xen/arch/x86/x86_emulate/x86_emulate.c Wed Jan 19 11:34:22 2011 +0000 @@ -3557,6 +3557,8 @@ x86_emulate( case 4: /* smsw */ if ( ea.type == OP_MEM ) ea.bytes = 2; + else + ea.bytes = op_bytes; dst = ea; fail_if(ops->read_cr == NULL); if ( (rc = ops->read_cr(0, &dst.val, ctxt)) ) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |