]> git.proxmox.com Git - mirror_qemu.git/commit - include/exec/cpu-all.h
exec: Use const alias for TARGET_PAGE_BITS_VARY
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 13 Sep 2019 15:21:53 +0000 (11:21 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 28 Oct 2019 09:29:22 +0000 (10:29 +0100)
commitbbc17caf81f94523e67c64a6e6cd8f869b7a1da5
tree851892dda244310010e2e1a689312f12b9a1ea8c
parentdb8aaae822dfdb18d993a686a146efcc63c216c0
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>
exec-vary.c
include/exec/cpu-all.h