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
F83369617: D40648.diff
Thu, May 9, 2:27 PM
Unknown Object (File)
Thu, May 2, 7:23 PM
Unknown Object (File)
Thu, May 2, 7:23 PM
Unknown Object (File)
Thu, May 2, 4:03 PM
Unknown Object (File)
Thu, May 2, 3:44 PM
Unknown Object (File)
Sun, Apr 21, 10:08 PM
Unknown Object (File)
Sun, Apr 21, 8:40 PM
Unknown Object (File)
Sun, Apr 21, 8:39 PM
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.