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>
This commit is contained in:
Izik Eidus 2007-11-11 14:46:34 +02:00 committed by Avi Kivity
parent e826ec9ae2
commit 2a738e20a1
1 changed files with 1 additions and 0 deletions

View 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 */