]> xenbits.xensource.com Git - xen.git/commitdiff
x86_emulate: BT instruction does not write to its 'destination' operand.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Apr 2008 09:27:04 +0000 (10:27 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Apr 2008 09:27:04 +0000 (10:27 +0100)
This fixes w2k3 guests occasionally writing back to read-only registers.

Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
xen/arch/x86/x86_emulate/x86_emulate.c

index b9bc790af172320fbb6d5713b72e9f63a1215d68..2b7ddeffbbac26baadfd29faacc2c9526d192e39 100644 (file)
@@ -3041,6 +3041,7 @@ x86_emulate(
 
     case 0xa3: bt: /* bt */
         emulate_2op_SrcV_nobyte("bt", src, dst, _regs.eflags);
+        dst.type = OP_NONE;
         break;
 
     case 0xa4: /* shld imm8,r,r/m */