summaryrefslogtreecommitdiffstats
path: root/include/exec/memory.h
diff options
context:
space:
mode:
authorRichard Henderson2019-09-13 17:21:53 +0200
committerRichard Henderson2019-10-28 10:29:22 +0100
commitbbc17caf81f94523e67c64a6e6cd8f869b7a1da5 (patch)
tree851892dda244310010e2e1a689312f12b9a1ea8c /include/exec/memory.h
parentconfigure: Detect compiler support for __attribute__((alias)) (diff)
downloadqemu-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