]> www.infradead.org Git - users/dwmw2/qemu.git/commit
bsd-user:Add CPU initialization and management functions
authorStacey Son <sson@FreeBSD.org>
Sun, 7 Jul 2024 19:11:21 +0000 (00:41 +0530)
committerWarner Losh <imp@bsdimp.com>
Tue, 23 Jul 2024 16:50:54 +0000 (10:50 -0600)
commit8cbb4fc12e1d10182cbab93f234510bc616594ca
treec2c86c26a723c4dd29f156c50007c4df23098faa
parent3cce8bd4d737f2ca688bbdcb92cd5cc683245bbd
bsd-user:Add CPU initialization and management functions

Added function to initialize ARM CPU and check if it supports 64-bit mode.
Implemented CPU loop function to handle exceptions and emulate execution of instructions.
Added function to clone CPU state to create a new thread.
Included AArch64 specific CPU functions for bsd-user to set and receive thread-local-storage
value from the tpidr_el0 register.
Introduced structure for storing CPU register states for BSD-USER.

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