aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm
diff options
context:
space:
mode:
authorIzik Eidus <izike@qumranet.com>2007-11-11 07:46:34 -0500
committerAvi Kivity <avi@qumranet.com>2007-11-27 08:10:45 -0500
commit2a738e20a11b44219aa83073d625ff1a7004e463 (patch)
treefc25b65d8d5b19ddd29f766a7ee079d1da29c71f /drivers/kvm
parente826ec9ae2baf9980402e85f0bbe1dac53ceb110 (diff)
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.c1
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:
1358 } 1358 }
1359 src.val = (unsigned long) _eip; 1359 src.val = (unsigned long) _eip;
1360 JMP_REL(rel); 1360 JMP_REL(rel);
1361 op_bytes = ad_bytes;
1361 goto push; 1362 goto push;
1362 } 1363 }
1363 case 0xe9: /* jmp rel */ 1364 case 0xe9: /* jmp rel */