diff options
author | Yang Zhong <yang.zhong@intel.com> | 2017-07-03 18:12:21 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-07-05 09:11:08 +0200 |
commit | b11ec7f2e44b285a3967d629b55d1a6970b06787 (patch) | |
tree | 62b3bc4d62a0e6407670be676a4faea6fcf98acd /include/exec/exec-all.h | |
parent | 5aa1ef71b44696bec2948a45ea9a0cda51219add (diff) |
tcg: add CONFIG_TCG guards in headers
Add CONFIG_TCG around TLB-related functions and structure declarations.
Some of these functions are defined in ./accel/tcg/cputlb.c, which will
not be linked in if TCG is disabled, and have no stubs; therefore, their
callers will also be compiled out for --disable-tcg.
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec/exec-all.h')
-rw-r--r-- | include/exec/exec-all.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 0b56432a3a..8096d64a1d 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -82,6 +82,9 @@ void cpu_reloading_memory_map(void); * Note that with KVM only one address space is supported. */ void cpu_address_space_init(CPUState *cpu, AddressSpace *as, int asidx); +#endif + +#if !defined(CONFIG_USER_ONLY) && defined(CONFIG_TCG) /* cputlb.c */ /** * tlb_flush_page: |