HomeFreeBSD

riscv: S-mode extension parsing

Description

riscv: S-mode extension parsing

There are now several Supervisor-mode extensions that have entered the
'ratified' status, so begin parsing and reporting a few of these.

Recognize the following extensions:

  • Sstc: stimecmp/vstimecmp CSR
  • Svnapot: NAPOT* translation contiguity
  • Svpbmt: page-based memory types
  • Svinval: fine-grained TLB invalidation instructions
  • Sscofpmf: performance counter overflow

*i.e. "naturally aligned power-of-2" page granularity

For now, provide globals for Sstc and Sscofpmf, as we will make use of
these in the near future.

Plus, update the copyright statement after my recent work on this file.

Reviewed by: jhb
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40240

(cherry picked from commit 8bebb786820f634d47522711b8cd56a66db3785d)

Details

Provenance
mhorneAuthored on May 25 2023, 5:07 PM
Reviewer
jhb
Differential Revision
D40240: riscv: S-mode extension parsing
Parents
rGad1ed7742f0e: riscv: Print less CPU info
Branches
Unknown
Tags
Unknown