diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-05-06 16:33:01 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-07-11 09:14:03 +0200 |
commit | 17052f16a51af6d8f4b7eee0631af675ac204f65 (patch) | |
tree | f2fa2f60c38e38ed175897b419ddb7b2df7901b2 /arch/x86/include | |
parent | 9506d57de3bc8277a4e306e0d439976862f68c6d (diff) | |
download | linux-17052f16a51af6d8f4b7eee0631af675ac204f65.tar.bz2 |
KVM: emulate: put pointers in the fetch_cache
This simplifies the code a bit, especially the overflow checks.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/kvm_emulate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h index fcf58cd25ebd..eb181178fe0b 100644 --- a/arch/x86/include/asm/kvm_emulate.h +++ b/arch/x86/include/asm/kvm_emulate.h @@ -242,8 +242,8 @@ struct operand { struct fetch_cache { u8 data[15]; - unsigned long start; - unsigned long end; + u8 *ptr; + u8 *end; }; struct read_cache { |