WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] x86_emulate: set the operand size for SMSW/reg write

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] x86_emulate: set the operand size for SMSW/reg writeback.
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Wed, 19 Jan 2011 11:37:35 +0000
Delivery-date: Wed, 19 Jan 2011 03:38:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] x86_emulate: set the operand size for SMSW/reg writeback., Tim Deegan <=