diff options
author | Avi Kivity <avi@qumranet.com> | 2008-06-16 01:09:11 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-07-20 05:42:34 -0400 |
commit | f5b4edcd52e78556800f90d08bfc9126416ac82f (patch) | |
tree | 5c40b9781cf18d66c9e71b837ffc3eaddac48ddb /include/asm-x86/kvm_x86_emulate.h | |
parent | 84411d85dacdb6665578608c6a70fc8b819761a8 (diff) |
KVM: x86 emulator: simplify rip relative decoding
rip relative decoding is relative to the instruction pointer of the next
instruction; by moving address adjustment until after decoding is complete,
we remove the need to determine the instruction size.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/asm-x86/kvm_x86_emulate.h')
-rw-r--r-- | include/asm-x86/kvm_x86_emulate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-x86/kvm_x86_emulate.h b/include/asm-x86/kvm_x86_emulate.h index b877bbd2d3a7..9fda4b35e195 100644 --- a/include/asm-x86/kvm_x86_emulate.h +++ b/include/asm-x86/kvm_x86_emulate.h | |||
@@ -134,6 +134,7 @@ struct decode_cache { | |||
134 | u8 modrm_reg; | 134 | u8 modrm_reg; |
135 | u8 modrm_rm; | 135 | u8 modrm_rm; |
136 | u8 use_modrm_ea; | 136 | u8 use_modrm_ea; |
137 | bool rip_relative; | ||
137 | unsigned long modrm_ea; | 138 | unsigned long modrm_ea; |
138 | void *modrm_ptr; | 139 | void *modrm_ptr; |
139 | unsigned long modrm_val; | 140 | unsigned long modrm_val; |