qemu/bsd-user
Mark Corbin 4c492b4063 bsd-user: Implement set_mcontext and get_ucontext_sigreturn for RISCV
Added implementations for 'set_mcontext' and 'get_ucontext_sigreturn'
functions for RISC-V architecture,
Both functions ensure that the CPU state and user context are properly
managed.

Signed-off-by: Mark Corbin <mark@dibsco.co.uk>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Signed-off-by: Ajeet Singh <itachis@FreeBSD.org>
Co-authored-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240916155119.14610-17-itachis@FreeBSD.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2024-10-02 15:11:52 +10:00
..
aarch64 bsd-user: Add target.h for aarch64. 2024-07-24 16:02:07 -06:00
arm bsd-user: Define TARGET_SIGSTACK_ALIGN and use it to round stack 2024-07-23 10:56:30 -06:00
freebsd bsd-user: Simplify the implementation of execve 2024-07-23 10:50:54 -06:00
host bsd-user: Catch up with sys/param.h requirement for machine/pmap.h 2022-10-26 14:09:17 -06:00
i386 bsd-user: Define TARGET_SIGSTACK_ALIGN and use it to round stack 2024-07-23 10:56:30 -06:00
include
netbsd exec: Move [b]tswapl() declarations to 'exec/user/tswap-target.h' 2024-04-26 17:03:05 +02:00
openbsd exec: Move [b]tswapl() declarations to 'exec/user/tswap-target.h' 2024-04-26 17:03:05 +02:00
riscv bsd-user: Implement set_mcontext and get_ucontext_sigreturn for RISCV 2024-10-02 15:11:52 +10:00
x86_64 bsd-user: Define TARGET_SIGSTACK_ALIGN and use it to round stack 2024-07-23 10:56:30 -06:00
bsd-file.h {linux,bsd}-user: Introduce get_task_state() 2024-03-06 12:35:19 +00:00
bsd-mem.c bsd-user: Implement shmid_ds conversion between host and target. 2023-10-03 17:14:07 -06:00
bsd-mem.h exec/cpu: Extract page-protection definitions to page-protection.h 2024-05-06 11:17:15 +02:00
bsd-proc.c bsd-user: Get number of cpus. 2023-10-03 17:14:06 -06:00
bsd-proc.h accel: Introduce AccelClass::cpu_common_[un]realize 2023-10-05 08:55:34 -04:00
bsdload.c
elfcore.c
elfload.c hw/elf_ops: Rename elf_ops.h -> elf_ops.h.inc 2024-04-25 12:48:12 +02:00
errno_defs.h bsd-user: spelling fixes 2023-09-20 07:54:34 +03:00
main.c bsd-user: Sync fork_start/fork_end with linux-user 2024-07-23 10:56:25 -06:00
meson.build configure, meson: rename targetos to host_os 2023-12-31 09:11:29 +01:00
mmap.c bsd-user: Handle short reads in mmap_h_gt_g 2024-08-21 09:10:42 +10:00
qemu-bsd.h bsd-user: Declarations for ipc_perm and shmid_ds conversion functions 2023-10-03 17:14:06 -06:00
qemu.h bsd-user:Add AArch64 improvements and signal handling functions 2024-07-23 10:50:54 -06:00
signal-common.h bsd-user: Implement host_to_target_siginfo. 2023-10-03 17:14:06 -06:00
signal.c bsd-user: Define TARGET_SIGSTACK_ALIGN and use it to round stack 2024-07-23 10:56:30 -06:00
strace.c exec: Move [b]tswapl() declarations to 'exec/user/tswap-target.h' 2024-04-26 17:03:05 +02:00
syscall_defs.h bsd-user: Implment madvise(2) to match the linux-user implementation. 2023-10-03 17:14:07 -06:00
trace-events trace-events: Fix the name of the tracing.rst file 2023-09-08 13:08:51 +03:00
trace.h bsd-user: Add trace events for bsd-user 2022-01-28 15:53:41 -07:00
uaccess.c