mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
3e8f1628e8
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> |
||
---|---|---|
.. | ||
arm | ||
freebsd | ||
i386 | ||
mips | ||
mips64 | ||
netbsd | ||
openbsd | ||
sparc | ||
sparc64 | ||
x86_64 | ||
bsd-mman.h | ||
bsdload.c | ||
elfload.c | ||
errno_defs.h | ||
main.c | ||
meson.build | ||
mmap.c | ||
qemu.h | ||
signal.c | ||
strace.c | ||
syscall_defs.h | ||
syscall.c | ||
uaccess.c |