direct-io.hg

changeset 13281:b648a579b0b4

[XEN] Fix new XCHG emulation.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Jan 05 18:01:20 2007 +0000 (2007-01-05)
parents d898b5990ed7
children 9865145e53eb
files xen/arch/x86/x86_emulate.c
line diff
     1.1 --- a/xen/arch/x86/x86_emulate.c	Fri Jan 05 17:51:51 2007 +0000
     1.2 +++ b/xen/arch/x86/x86_emulate.c	Fri Jan 05 18:01:20 2007 +0000
     1.3 @@ -1084,10 +1084,10 @@ x86_emulate(
     1.4          if ( !(rex_prefix & 1) )
     1.5              break; /* nop */
     1.6      case 0x91 ... 0x97: /* xchg reg,%%rax */
     1.7 -        src.type = OP_REG;
     1.8 +        src.type = dst.type = OP_REG;
     1.9 +        src.bytes = dst.bytes = op_bytes;
    1.10          src.reg  = (unsigned long *)&_regs.eax;
    1.11          src.val  = *src.reg;
    1.12 -        dst.type = OP_REG;
    1.13          dst.reg  = decode_register(
    1.14              (b & 7) | ((rex_prefix & 1) << 3), &_regs, 0);
    1.15          dst.val  = dst.orig_val = *dst.reg;