KVM: Remove dead code in the cmpxchg instruction emulation
The writeback fixes (02c03a326a
) 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>
This commit is contained in:
committed by
Avi Kivity
parent
62b3ffb8b3
commit
3ccb8827fb
@@ -1278,8 +1278,6 @@ twobyte_insn:
|
|||||||
src.orig_val = src.val;
|
src.orig_val = src.val;
|
||||||
src.val = _regs[VCPU_REGS_RAX];
|
src.val = _regs[VCPU_REGS_RAX];
|
||||||
emulate_2op_SrcV("cmp", src, dst, _eflags);
|
emulate_2op_SrcV("cmp", src, dst, _eflags);
|
||||||
/* Always write back. The question is: where to? */
|
|
||||||
d |= Mov;
|
|
||||||
if (_eflags & EFLG_ZF) {
|
if (_eflags & EFLG_ZF) {
|
||||||
/* Success: write back to memory. */
|
/* Success: write back to memory. */
|
||||||
dst.val = src.orig_val;
|
dst.val = src.orig_val;
|
||||||
|
Reference in New Issue
Block a user