projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c27eba
)
KVM: x86 emulator: fix JMP_REL
author
Izik Eidus
<
[email protected]
>
Sun, 11 Nov 2007 12:40:48 +0000
(14:40 +0200)
committer
Avi Kivity
<
[email protected]
>
Tue, 27 Nov 2007 13:08:22 +0000
(15:08 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/kvm/x86_emulate.c
b/drivers/kvm/x86_emulate.c
index 33b181451557ad926df9c09a4a401c7fc71ae933..a1a9c9be39b3a549a6ca35d7ae13dfab6d0ef96a 100644
(file)
--- 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)
/*