aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2007-07-25 05:41:57 -0400
committerAvi Kivity <avi@qumranet.com>2007-10-13 04:18:19 -0400
commit3ccb8827fb3bd389ed15320da83543d016a94822 (patch)
treeb9478f4ee71c807409f490f768eda060a940834a /drivers/kvm
parent62b3ffb8b357a791491726cff8d395027e5245b7 (diff)
KVM: Remove dead code in the cmpxchg instruction emulation
The writeback fixes (02c03a326a5df825cc01de426f72e160db2b9538) let some dead code in the cmpxchg instruction emulation. Remove it. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm')
-rw-r--r--drivers/kvm/x86_emulate.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c
index ef7518a2d7ac..2136da5d6976 100644
--- a/drivers/kvm/x86_emulate.c
+++ b/drivers/kvm/x86_emulate.c
@@ -1278,8 +1278,6 @@ twobyte_insn:
1278 src.orig_val = src.val; 1278 src.orig_val = src.val;
1279 src.val = _regs[VCPU_REGS_RAX]; 1279 src.val = _regs[VCPU_REGS_RAX];
1280 emulate_2op_SrcV("cmp", src, dst, _eflags); 1280 emulate_2op_SrcV("cmp", src, dst, _eflags);
1281 /* Always write back. The question is: where to? */
1282 d |= Mov;
1283 if (_eflags & EFLG_ZF) { 1281 if (_eflags & EFLG_ZF) {
1284 /* Success: write back to memory. */ 1282 /* Success: write back to memory. */
1285 dst.val = src.orig_val; 1283 dst.val = src.orig_val;