ia64/xen-unstable

changeset 17497:d9a74b8e9b1a

x86_emulate: BT instruction does not write to its 'destination' operand.

This fixes w2k3 guests occasionally writing back to read-only registers.

Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 22 10:27:04 2008 +0100 (2008-04-22)
parents da261c25f160
children 5e3baace443f
files xen/arch/x86/x86_emulate/x86_emulate.c
line diff
     1.1 --- a/xen/arch/x86/x86_emulate/x86_emulate.c	Tue Apr 22 10:20:05 2008 +0100
     1.2 +++ b/xen/arch/x86/x86_emulate/x86_emulate.c	Tue Apr 22 10:27:04 2008 +0100
     1.3 @@ -3041,6 +3041,7 @@ x86_emulate(
     1.4  
     1.5      case 0xa3: bt: /* bt */
     1.6          emulate_2op_SrcV_nobyte("bt", src, dst, _regs.eflags);
     1.7 +        dst.type = OP_NONE;
     1.8          break;
     1.9  
    1.10      case 0xa4: /* shld imm8,r,r/m */