qemu-e2k/bsd-user
Richard Henderson 3e8f1628e8 exec: Use cpu_untagged_addr in g2h; split out g2h_untagged
Use g2h_untagged in contexts that have no cpu, e.g. the binary
loaders that operate before the primary cpu is created.  As a
colollary, target_mmap and friends must use untagged addresses,
since they are used by the loaders.

Use g2h_untagged on values returned from target_mmap, as the
kernel never applies a tag itself.

Use g2h_untagged on all pc values.  The only current user of
tags, aarch64, removes tags from code addresses upon branch,
so "pc" is always untagged.

Use g2h with the cpu context on hand wherever possible.

Use g2h_untagged in lock_user, which will be updated soon.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210212184902.1251044-13-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2021-02-16 11:04:53 +00:00
..
arm bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
freebsd bsd-user: Update strace.list for FreeBSD's latest syscalls 2021-01-11 14:59:21 +01:00
i386 bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
mips bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
mips64 bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
netbsd bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
openbsd bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
sparc bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
sparc64 bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
x86_64 bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
bsd-mman.h Prepare for handling different BSD mmap() flags 2008-11-29 14:05:16 +00:00
bsdload.c bsd-user/bsdload.c: Remove write-only id_change variable 2017-07-21 15:00:43 +01:00
elfload.c exec: Use cpu_untagged_addr in g2h; split out g2h_untagged 2021-02-16 11:04:53 +00:00
errno_defs.h
main.c exec: Use cpu_untagged_addr in g2h; split out g2h_untagged 2021-02-16 11:04:53 +00:00
meson.build meson: bsd-user 2020-08-21 06:30:38 -04:00
mmap.c exec: Use cpu_untagged_addr in g2h; split out g2h_untagged 2021-02-16 11:04:53 +00:00
qemu.h exec: Use cpu_untagged_addr in g2h; split out g2h_untagged 2021-02-16 11:04:53 +00:00
signal.c bsd-user: Clean up includes 2016-02-04 17:01:04 +00:00
strace.c bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
syscall_defs.h bsd-user: FreeBSD update 2009-10-18 15:16:08 +00:00
syscall.c gdbstub: drop CPUEnv from gdb_exit() 2021-01-18 10:05:06 +00:00
uaccess.c bsd-user: Suppress gcc 4.x -Wpointer-sign (included in -Wall) warning 2016-04-05 17:49:41 +01:00