diff options
author | Izik Eidus <izike@qumranet.com> | 2007-11-11 14:46:34 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-11-27 15:10:45 +0200 |
commit | 2a738e20a11b44219aa83073d625ff1a7004e463 (patch) | |
tree | fc25b65d8d5b19ddd29f766a7ee079d1da29c71f /drivers/kvm | |
parent | e826ec9ae2baf9980402e85f0bbe1dac53ceb110 (diff) | |
download | linux-2a738e20a11b44219aa83073d625ff1a7004e463.tar.bz2 |
KVM: x86 emulator: fix the saving of of the eip value
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>
Diffstat (limited to 'drivers/kvm')
-rw-r--r-- | drivers/kvm/x86_emulate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c index a1a9c9be39b3..6c1413f9e9c3 100644 --- a/drivers/kvm/x86_emulate.c +++ b/drivers/kvm/x86_emulate.c @@ -1358,6 +1358,7 @@ special_insn: } src.val = (unsigned long) _eip; JMP_REL(rel); + op_bytes = ad_bytes; goto push; } case 0xe9: /* jmp rel */ |