]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
exec: Restrict TARGET_PAGE_BITS_VARY assert to CONFIG_DEBUG_TCG
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 13 Sep 2019 15:41:51 +0000 (11:41 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 28 Oct 2019 09:30:19 +0000 (10:30 +0100)
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>
include/exec/cpu-all.h

index 0b449b98ba9d9391e3e0bfac175009d91d0ef981..525059970ca4a884a42d9ad23dacb6e403148f34 100644 (file)
@@ -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