repository: /home/avi/kvm/linux-2.6 branch: master commit f4e63bc2d9a7e0bad6209fe6ec95fda4ad2f3e9c Author: Izik Eidus <[EMAIL PROTECTED]> Date: Sun Nov 11 14:40:48 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]> diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c index 2765559..e969589 100644 --- a/drivers/kvm/x86_emulate.c +++ b/drivers/kvm/x86_emulate.c @@ -443,9 +443,7 @@ static u16 twobyte_table[256] = { #define JMP_REL(rel) \ do { \ - c->eip += (int)(rel); \ - c->eip = ((c->op_bytes == 2) ? \ - (uint16_t)c->eip : (uint32_t)c->eip); \ + register_address_increment(c->eip, rel); \ } while (0) /* ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ kvm-commits mailing list kvm-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-commits