OSDN Git Service

tcg: add CONFIG_TCG guards in headers
authorYang Zhong <yang.zhong@intel.com>
Mon, 3 Jul 2017 10:12:21 +0000 (18:12 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Jul 2017 07:11:08 +0000 (09:11 +0200)
commitb11ec7f2e44b285a3967d629b55d1a6970b06787
tree62b3bc4d62a0e6407670be676a4faea6fcf98acd
parent5aa1ef71b44696bec2948a45ea9a0cda51219add
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>
include/exec/cpu-defs.h
include/exec/exec-all.h