[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86_emulate: set the operand size for SMSW/reg writeback.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1295450944 0
# Node ID fe8a177ae9cb01cda771ba64cea2c0470cf79cd8
# Parent  3decd02e0b18ae21fb926c6bad96a4cd02c48272
x86_emulate: set the operand size for SMSW/reg writeback.
Otherwise it defaults to 0 bytes.

Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxx>
---
 xen/arch/x86/x86_emulate/x86_emulate.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -r 3decd02e0b18 -r fe8a177ae9cb xen/arch/x86/x86_emulate/x86_emulate.c
--- a/xen/arch/x86/x86_emulate/x86_emulate.c    Mon Jan 17 14:29:01 2011 +0000
+++ b/xen/arch/x86/x86_emulate/x86_emulate.c    Wed Jan 19 15:29:04 2011 +0000
@@ -3555,8 +3555,7 @@ x86_emulate(
                 goto done;
             break;
         case 4: /* smsw */
-            if ( ea.type == OP_MEM )
-                ea.bytes = 2;
+            ea.bytes = (ea.type == OP_MEM) ? 2 : op_bytes;
             dst = ea;
             fail_if(ops->read_cr == NULL);
             if ( (rc = ops->read_cr(0, &dst.val, ctxt)) )

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.