qemu/bsd-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
..
arm bsd-user: introduce target.h 2022-02-26 21:05:21 -07:00
freebsd bsd-user/bsd-file.h: Implementation details for the filesystem calls 2022-02-26 21:05:18 -07:00
host bsd-user/host/x86_64/host-signal.h: Implement host_signal_* 2022-01-28 15:52:39 -07:00
i386 bsd-user: introduce target.h 2022-02-26 21:05:21 -07:00
include user: move common-user includes to a subdirectory of {bsd,linux}-user/ 2022-01-12 14:08:29 +01:00
netbsd bsd-user: elf cleanup 2021-09-10 14:13:06 -06:00
openbsd bsd-user: elf cleanup 2021-09-10 14:13:06 -06:00
x86_64 bsd-user: introduce target.h 2022-02-26 21:05:21 -07:00
bsd-file.h bsd-user/bsd-file.h: Implementation details for the filesystem calls 2022-02-26 21:05:18 -07:00
bsdload.c bsd-user: TARGET_NGROUPS unused in this file, remove 2021-09-10 14:13:06 -06:00
elfcore.c bsd-user: add stubbed out core dump support 2021-09-10 14:13:06 -06:00
elfload.c Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
errno_defs.h bsd-user: Create special-errno.h 2021-12-19 20:47:33 -08:00
main.c bsd-user: Remove bsd_type 2022-02-26 10:01:38 -07:00
meson.build bsd-user: Move system call building to os-syscall.c 2022-02-26 10:01:38 -07:00
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
signal-common.h bsd-user/signal.c: Only copy the _capsicum for FreeBSD_version > 1400026 2022-02-01 14:43:20 -07:00
signal.c exec/exec-all: Move 'qemu/log.h' include in units requiring it 2022-02-21 10:18:06 +01:00
strace.c bsd-user/strace.c: print_taken_signal 2022-01-28 15:53:41 -07:00
syscall_defs.h bsd-user: Add safe system call macros 2022-02-26 21:05:21 -07:00
trace-events bsd-user: Add trace events for bsd-user 2022-01-28 15:53:41 -07:00
trace.h bsd-user: Add trace events for bsd-user 2022-01-28 15:53:41 -07:00
uaccess.c bsd-user: style tweak: keyword space ( 2021-05-11 11:07:22 -06:00