- Remove now unnecessary MACHINE_ARCHES definition. The default logic in kern_mib.c works fine now for RISC-V.
- Remove custom sv_machine_arch hook from sysentvec.
Fixes: 1ca12bd927d7 Remove the riscv64sf architecture.
Sponsored by: DARPA
Differential D40648
riscv: Remove MACHINE_ARCH-specific remnants of riscv64sf. jhb on Jun 20 2023, 4:31 PM. Authored by Tags None Referenced Files
Details
Fixes: 1ca12bd927d7 Remove the riscv64sf architecture.
Diff Detail
Event TimelineComment Actions Can possibly remove MACHINE_ARCHES and sv_machine_arch as a followup as they are no longer used after this. Comment Actions So does CHERI or any out-of-the-tree user need them? also, we do use MACHINE_ARCHES for the kern.supported_arch sysctl, though after this change we could make that #define purely internal to kern_mib.c ... Comment Actions CHERI does not use it no. CheriBSD has a MACHINE_ARCH64 helper similar to MACHINE_ARCH32 and handles it all internal to kern_mib.c as well. I think only soft-float arches (MIPS and RISC-V) used this feature previously. |