On 11/3/25 11:51, Philippe Mathieu-Daudé wrote:
Cache getpagesize() call once, so we don't have to worry
how often we can call qemu_real_host_page_size() and
qemu_real_host_page_mask().

Philippe Mathieu-Daudé (2):
   osdep: Un-inline qemu_real_host_page_size()
   osdep: Cache getpagesize() call in qemu_real_host_page_size()

Reviewed-by: Richard Henderson <[email protected]>

That's a step up, certainly. I had been thinking of making it a faux const variable, akin to how we manage page-vary-common.c, and a high priority constructor.

With less efford you could mark the function __attribute__((const)), so that the compiler will CSE calls.


r~

Reply via email to