bsd-user: Define RISC-V register structures and register copying
authorMark Corbin <mark@dibsco.co.uk>
Mon, 16 Sep 2024 15:51:08 +0000 (01:51 +1000)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 2 Oct 2024 05:11:52 +0000 (15:11 +1000)
commit2bf79222ce97156f395d3c214897d7a4f8fecc85
tree3fb513681e887b204729e7023f8d3915ff04ed4b
parent8951b87da45a8434d3c276d7c30028df85487270
bsd-user: Define RISC-V register structures and register copying

Added definitions for RISC-V register structures, including
general-purpose registers and floating-point registers, in
'target_arch_reg.h'. Implemented the 'target_copy_regs' function to
copy register values from the CPU state to the target register
structure, ensuring proper endianness handling using 'tswapreg'.

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-7-itachis@FreeBSD.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
bsd-user/riscv/target_arch_reg.h [new file with mode: 0644]