diff options
| author | Richard Henderson | 2019-09-13 17:21:53 +0200 |
|---|---|---|
| committer | Richard Henderson | 2019-10-28 10:29:22 +0100 |
| commit | bbc17caf81f94523e67c64a6e6cd8f869b7a1da5 (patch) | |
| tree | 851892dda244310010e2e1a689312f12b9a1ea8c /include/exec/memory.h | |
| parent | configure: Detect compiler support for __attribute__((alias)) (diff) | |
| download | qemu-bbc17caf81f94523e67c64a6e6cd8f869b7a1da5.tar.gz qemu-bbc17caf81f94523e67c64a6e6cd8f869b7a1da5.tar.xz qemu-bbc17caf81f94523e67c64a6e6cd8f869b7a1da5.zip | |
exec: Use const alias for TARGET_PAGE_BITS_VARY
Using a variable that is declared "const" for this tells the
compiler that it may read the value once and assume that it
does not change across function calls.
For target_page_size, this means we have only one assert per
function, and one read of the variable.
This reduces the size of qemu-system-aarch64 by 8k.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec/memory.h')
0 files changed, 0 insertions, 0 deletions
