bsd-user: Add RISC-V ELF definitions and hardware capability detection
authorMark Corbin <mark@dibsco.co.uk>
Mon, 16 Sep 2024 15:51:07 +0000 (01:51 +1000)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 2 Oct 2024 05:11:52 +0000 (15:11 +1000)
commit8951b87da45a8434d3c276d7c30028df85487270
tree70f2a7fc38ae6087a71ab45453b2978b326d2745
parent83726b77983df7b3ed11023b9fd36b82e710c2aa
bsd-user: Add RISC-V ELF definitions and hardware capability detection

Introduced RISC-V specific ELF definitions and hardware capability
detection.
Additionally, a function to retrieve hardware capabilities
('get_elf_hwcap') is implemented, which returns the common bits set in
each CPU's ISA strings.

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