exec: Restrict TARGET_PAGE_BITS_VARY assert to CONFIG_DEBUG_TCG
This reduces the size of a release build by about 10k. Noticably, within the tlb miss helpers. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
bbc17caf81
commit
639044b5f1
@ -219,8 +219,12 @@ extern const TargetPageBits target_page;
|
|||||||
#else
|
#else
|
||||||
extern TargetPageBits target_page;
|
extern TargetPageBits target_page;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_DEBUG_TCG
|
||||||
#define TARGET_PAGE_BITS ({ assert(target_page.decided); target_page.bits; })
|
#define TARGET_PAGE_BITS ({ assert(target_page.decided); target_page.bits; })
|
||||||
#else
|
#else
|
||||||
|
#define TARGET_PAGE_BITS target_page.bits
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
#define TARGET_PAGE_BITS_MIN TARGET_PAGE_BITS
|
#define TARGET_PAGE_BITS_MIN TARGET_PAGE_BITS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user