qemu/linux-user
Marc-André Lureau 8e3b0cbb72 Replace qemu_real_host_page variables with inlined functions
Replace the global variables with inlined helper functions. getpagesize() is very
likely annotated with a "const" function attribute (at least with glibc), and thus
optimization should apply even better.

This avoids the need for a constructor initialization too.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220323155743.1585078-12-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-04-06 10:50:38 +02:00
..
aarch64 Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
alpha linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
arm Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
cris linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
generic linux-user/syscall: Translate TARGET_RLIMIT_RTTIME 2022-02-01 08:01:44 +01:00
hexagon linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
hppa linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
i386 linux-user: Add missing "qemu/timer.h" include 2022-02-21 10:18:06 +01:00
include ppc64: Avoid pt_regs struct definition 2022-03-20 23:35:27 +01:00
m68k linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
microblaze linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
mips linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
mips64 linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
nios2 linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
openrisc linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
ppc Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
riscv linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
s390x linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
sh4 linux-user/sh4/termbits: Silence warning about TIOCSER_TEMT double definition 2022-03-31 21:27:02 +02:00
sparc linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
x86_64 linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h 2022-02-01 08:01:38 +01:00
xtensa Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
cpu_loop-common.h
elfload.c Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
errnos.c.inc
exit.c
fd-trans.c
fd-trans.h
flat.h
flatload.c
ioctls.h
linux_loop.h
linuxload.c
loader.h
main.c
meson.build
mmap.c Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
qemu.h Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
semihost.c
signal-common.h linux-user: Split out helpers for sigsuspend 2022-03-22 13:06:21 +01:00
signal.c linux-user: Split out helpers for sigsuspend 2022-03-22 13:06:21 +01:00
socket.h
strace.c
strace.h
strace.list
syscall.c Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
syscall_defs.h linux-user: Remove the deprecated ppc64abi32 target 2022-02-09 13:29:38 +00:00
syscall_types.h
target_flat.h
thunk.c
trace-events
trace.h
uaccess.c
uname.c Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
uname.h
user-internals.h Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
user-mmap.h
vm86.c