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-changelog

[Xen-changelog] [xen-4.0-testing] x86_emulate: set the operand size for

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.0-testing] x86_emulate: set the operand size for SMSW/reg writeback.
From: "Xen patchbot-4.0-testing" <patchbot@xxxxxxx>
Date: Mon, 24 Jan 2011 07:30:15 -0800
Delivery-date: Mon, 24 Jan 2011 07:30:25 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1295625784 0
# Node ID 9b453f96dd4658744bb530a6c6d59dbf25d11bd2
# Parent  f47b924f74af83edc9a3020d38b7d5beb95c9dcc
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-unstable changeset:   22782:fe8a177ae9cb
xen-unstable date:        Wed Jan 19 15:29:04 2011 +0000
---
 xen/arch/x86/x86_emulate/x86_emulate.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -r f47b924f74af -r 9b453f96dd46 xen/arch/x86/x86_emulate/x86_emulate.c
--- a/xen/arch/x86/x86_emulate/x86_emulate.c    Tue Jan 18 12:25:54 2011 +0000
+++ b/xen/arch/x86/x86_emulate/x86_emulate.c    Fri Jan 21 16:03: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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.0-testing] x86_emulate: set the operand size for SMSW/reg writeback., Xen patchbot-4.0-testing <=