]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
riscv: S-mode extension parsing
authorMitchell Horne <mhorne@FreeBSD.org>
Thu, 25 May 2023 17:07:26 +0000 (14:07 -0300)
committerMitchell Horne <mhorne@FreeBSD.org>
Thu, 25 May 2023 17:07:26 +0000 (14:07 -0300)
commit8bebb786820f634d47522711b8cd56a66db3785d
tree9d6ac91ad5b5b984992d7b86ad8f0d533b0689fe
parentef0a711fd5d0d389205c18c869c78b9a4d639ddb
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
sys/riscv/include/md_var.h
sys/riscv/riscv/identcpu.c