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

[Xen-changelog] [xen-unstable] [XEN] Fix new XCHG emulation.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1168020080 0
# Node ID b648a579b0b4ac179c3652f2e5d12b6f7349b756
# Parent  d898b5990ed73f880ba9cedf1f5b5d352dce8dfe
[XEN] Fix new XCHG emulation.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/arch/x86/x86_emulate.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r d898b5990ed7 -r b648a579b0b4 xen/arch/x86/x86_emulate.c
--- a/xen/arch/x86/x86_emulate.c        Fri Jan 05 17:51:51 2007 +0000
+++ b/xen/arch/x86/x86_emulate.c        Fri Jan 05 18:01:20 2007 +0000
@@ -1084,10 +1084,10 @@ x86_emulate(
         if ( !(rex_prefix & 1) )
             break; /* nop */
     case 0x91 ... 0x97: /* xchg reg,%%rax */
-        src.type = OP_REG;
+        src.type = dst.type = OP_REG;
+        src.bytes = dst.bytes = op_bytes;
         src.reg  = (unsigned long *)&_regs.eax;
         src.val  = *src.reg;
-        dst.type = OP_REG;
         dst.reg  = decode_register(
             (b & 7) | ((rex_prefix & 1) << 3), &_regs, 0);
         dst.val  = dst.orig_val = *dst.reg;

_______________________________________________
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®.