bsd-user: Define RISC-V VM parameters and helper functions
authorMark Corbin <mark@dibsco.co.uk>
Mon, 16 Sep 2024 15:51:12 +0000 (01:51 +1000)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 2 Oct 2024 05:11:52 +0000 (15:11 +1000)
commit9f57fb97b6d021eacd14d2399f50e31aef33b29c
tree20d441eaf7a995dc363d3c0de309bd79029da056
parent9aae5dcd04e705299601f1f85f617a448f4ad713
bsd-user: Define RISC-V VM parameters and helper functions

Added definitions for RISC-V VM parameters, including maximum and
default sizes for text, data, and stack, as well as address space
limits.
Implemented helper functions for retrieving and setting specific
values in the CPU state, such as stack pointer and return values.

Signed-off-by: Mark Corbin <mark@dibsco.co.uk>
Signed-off-by: Ajeet Singh <itachis@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240916155119.14610-11-itachis@FreeBSD.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
bsd-user/riscv/target_arch_vmparam.h [new file with mode: 0644]