Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e826ec9ae2baf9980402e85f0bbe1dac53ceb110 Commit: e826ec9ae2baf9980402e85f0bbe1dac53ceb110 Parent: 8c27eba54970c6ebbb408186e5baa2274435e869 Author: Izik Eidus <[EMAIL PROTECTED]> AuthorDate: Sun Nov 11 14:40:48 2007 +0200 Committer: Avi Kivity <[EMAIL PROTECTED]> CommitDate: Tue Nov 27 15:08:22 2007 +0200
KVM: x86 emulator: fix JMP_REL Change JMP_REL to call to register_address_increment(): the operands size should not effect the calculation of the eip, instead the ad_bytes should affect it. Signed-off-by: Izik Eidus <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> --- drivers/kvm/x86_emulate.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c index 33b1814..a1a9c9b 100644 --- a/drivers/kvm/x86_emulate.c +++ b/drivers/kvm/x86_emulate.c @@ -448,8 +448,7 @@ struct operand { #define JMP_REL(rel) \ do { \ - _eip += (int)(rel); \ - _eip = ((op_bytes == 2) ? (uint16_t)_eip : (uint32_t)_eip); \ + register_address_increment(_eip, rel); \ } while (0) /* - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html