diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2019-09-13 11:21:53 -0400 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2019-10-28 10:29:22 +0100 |
| commit | bbc17caf81f94523e67c64a6e6cd8f869b7a1da5 (patch) | |
| tree | 851892dda244310010e2e1a689312f12b9a1ea8c /util/async.c | |
| parent | db8aaae822dfdb18d993a686a146efcc63c216c0 (diff) | |
| download | focaccia-qemu-bbc17caf81f94523e67c64a6e6cd8f869b7a1da5.tar.gz focaccia-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 'util/async.c')
0 files changed, 0 insertions, 0 deletions