aboutsummaryrefslogtreecommitdiff
path: root/include/exec/cpu-all.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2019-09-13 11:41:51 -0400
committerRichard Henderson <richard.henderson@linaro.org>2019-10-28 10:30:19 +0100
commit639044b5f121a44909eca929d7fd6d070024b9f9 (patch)
tree1819c0ad50b54f67528d98c95d11dc43882c0beb /include/exec/cpu-all.h
parentbbc17caf81f94523e67c64a6e6cd8f869b7a1da5 (diff)
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>
Diffstat (limited to 'include/exec/cpu-all.h')
-rw-r--r--include/exec/cpu-all.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h
index 0b449b98ba..525059970c 100644
--- a/include/exec/cpu-all.h
+++ b/include/exec/cpu-all.h
@@ -219,8 +219,12 @@ extern const TargetPageBits target_page;
#else
extern TargetPageBits target_page;
#endif
+#ifdef CONFIG_DEBUG_TCG
#define TARGET_PAGE_BITS ({ assert(target_page.decided); target_page.bits; })
#else
+#define TARGET_PAGE_BITS target_page.bits
+#endif
+#else
#define TARGET_PAGE_BITS_MIN TARGET_PAGE_BITS
#endif