]> git.ipfire.org Git - thirdparty/qemu.git/commit
bsd-user:Add AArch64 register handling and related functions
authorStacey Son <sson@FreeBSD.org>
Sun, 7 Jul 2024 19:11:22 +0000 (00:41 +0530)
committerWarner Losh <imp@bsdimp.com>
Tue, 23 Jul 2024 16:50:54 +0000 (10:50 -0600)
commit1acce7718bd41a20d3db6323959fedf9c3675ebe
treeac0688e1e98a4b169d24d23b23e1fbec53c36200
parent8cbb4fc12e1d10182cbab93f234510bc616594ca
bsd-user:Add AArch64 register handling and related functions

Added header file for managing CPU register states in FreeBSD user mode.
Introduced prototypes for setting and getting thread-local storage (TLS).
Implemented AArch64 sysarch() system call emulation and a printing function.
Added function for setting up thread upcall to add thread support to BSD-USER.
Initialized thread's register state during thread setup.
Updated ARM AArch64 VM parameter definitions for bsd-user, including address spaces for FreeBSD/arm64 and
a function for getting the stack pointer from CPU and setting a return value.

Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Ajeet Singh <itachis@FreeBSD.org>
Co-authored-by: Jessica Clarke <jrtc27@jrtc27.com>
Co-authored-by: Sean Bruno <sbruno@freebsd.org>
Co-authored-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240707191128.10509-3-itachis@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
bsd-user/aarch64/target_arch.h [new file with mode: 0644]
bsd-user/aarch64/target_arch_reg.h [new file with mode: 0644]
bsd-user/aarch64/target_arch_sysarch.h [new file with mode: 0644]
bsd-user/aarch64/target_arch_thread.h [new file with mode: 0644]
bsd-user/aarch64/target_arch_vmparam.h [new file with mode: 0644]