Page MenuHomeFreeBSD

riscv: Remove MACHINE_ARCH-specific remnants of riscv64sf.
ClosedPublic

Authored by jhb on Jun 20 2023, 4:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 1:32 PM
Unknown Object (File)
Sep 29 2024, 12:03 PM
Unknown Object (File)
Sep 17 2024, 4:17 PM
Unknown Object (File)
Sep 17 2024, 9:09 AM
Unknown Object (File)
Sep 16 2024, 9:29 PM
Unknown Object (File)
Sep 16 2024, 8:22 AM
Unknown Object (File)
Sep 14 2024, 8:56 PM
Unknown Object (File)
Sep 8 2024, 4:00 AM
Subscribers

Details

Summary
  • 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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Jun 20 2023, 4:31 PM

Can possibly remove MACHINE_ARCHES and sv_machine_arch as a followup as they are no longer used after this.

In D40648#925283, @jhb wrote:

Can possibly remove MACHINE_ARCHES and sv_machine_arch as a followup as they are no longer used after this.

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 ...

In D40648#925495, @imp wrote:
In D40648#925283, @jhb wrote:

Can possibly remove MACHINE_ARCHES and sv_machine_arch as a followup as they are no longer used after this.

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 ...

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.

This revision was not accepted when it landed; it landed in state Needs Review.Jun 27 2023, 5:19 PM
This revision was automatically updated to reflect the committed changes.