]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
KVM: x86 emulator: fix the saving of of the eip value
authorIzik Eidus <izike@qumranet.com>
Sun, 11 Nov 2007 12:46:34 +0000 (14:46 +0200)
committerAvi Kivity <avi@qumranet.com>
Tue, 27 Nov 2007 13:10:45 +0000 (15:10 +0200)
this make sure that no matter what is the operand size,
all the value of the eip will be saved

Signed-off-by: Izik Eidus <izike@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/x86_emulate.c

index a1a9c9be39b3a549a6ca35d7ae13dfab6d0ef96a..6c1413f9e9c375e7d33daa3f67289654a203bb87 100644 (file)
@@ -1358,6 +1358,7 @@ special_insn:
                }
                src.val = (unsigned long) _eip;
                JMP_REL(rel);
+               op_bytes = ad_bytes;
                goto push;
        }
        case 0xe9: /* jmp rel */