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-unstable] x86_emulate: Fix SHLD/SHRD emulation -- c

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86_emulate: Fix SHLD/SHRD emulation -- cannot rely on dst.orig_val
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 05 Dec 2007 05:40:33 -0800
Delivery-date: Wed, 05 Dec 2007 06:28:11 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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.fraser@xxxxxxxxxx>
# Date 1196767385 0
# Node ID 6706934cdf9d5d7110d97c5186dd5292e717cd5f
# Parent  62717554d4cb72eac230b67054e844c18ab918d7
x86_emulate: Fix SHLD/SHRD emulation -- cannot rely on dst.orig_val
being already initialised.
From: Dexuan Cui <dexuan.cui@xxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/x86_emulate.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 62717554d4cb -r 6706934cdf9d xen/arch/x86/x86_emulate.c
--- a/xen/arch/x86/x86_emulate.c        Tue Dec 04 11:16:41 2007 +0000
+++ b/xen/arch/x86/x86_emulate.c        Tue Dec 04 11:23:05 2007 +0000
@@ -2624,7 +2624,7 @@ x86_emulate(
         shift = (b & 1) ? (uint8_t)_regs.ecx : insn_fetch_type(uint8_t);
         if ( (shift &= width - 1) == 0 )
             break;
-        dst.orig_val = truncate_word(dst.orig_val, dst.bytes);
+        dst.orig_val = truncate_word(dst.val, dst.bytes);
         dst.val = ((shift == width) ? src.val :
                    (b & 8) ?
                    /* shrd */

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86_emulate: Fix SHLD/SHRD emulation -- cannot rely on dst.orig_val, Xen patchbot-unstable <=