Skip to content

Add CSR YAML files for Sscofpmf: scountovf #607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Changes from 2 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1172506
Add CSR YAML files for Sscofpmf: scountovf
syedowaisalishah Apr 11, 2025
6adbfbb
Add CSR YAML files for Sscofpmf: scountovf
syedowaisalishah Apr 16, 2025
4170a69
Merge branch 'riscv-software-src:main' into Add-Sscofpmf-csr-yaml
syedowaisalishah Apr 18, 2025
e639889
Add CSR YAML files for Sscofpmf: scountovf
syedowaisalishah Apr 18, 2025
3be9d9a
Merge branch 'main' into Add-Sscofpmf-csr-yaml
syedowaisalishah Apr 22, 2025
5ee9a9a
Merge branch 'riscv-software-src:main' into Add-Sscofpmf-csr-yaml
syedowaisalishah Apr 26, 2025
3575bd5
Add CSR YAML files for Sscofpmf: scountovf
syedowaisalishah Apr 26, 2025
dea3248
Add CSR YAML files for Sscofpmf: scountovf
syedowaisalishah Apr 26, 2025
cdfe027
Merge branch 'riscv-software-src:main' into Add-Sscofpmf-csr-yaml
syedowaisalishah Apr 30, 2025
2a3b7ba
docs(sscofpmf): add CSR YAML and layout files for scountovf
syedowaisalishah May 1, 2025
fe3fcb1
Merge branch 'main' into Add-Sscofpmf-csr-yaml
syedowaisalishah May 2, 2025
12e83ba
docs(sscofpmf): add CSR YAML and layout files for scountovf
syedowaisalishah May 3, 2025
2333565
chore(rake): add task to generate scountovf.yaml from layout
syedowaisalishah May 3, 2025
906868b
docs(sscofpmf): add CSR layout file for scountovf
syedowaisalishah May 3, 2025
bfb2ce5
docs(sscofpmf): add CSR yaml and layout file for scountovf
syedowaisalishah May 5, 2025
ae18b48
Merge branch 'riscv-software-src:main' into Add-Sscofpmf-csr-yaml
syedowaisalishah May 6, 2025
b70067c
docs(sscofpmf): add CSR yaml and layout file for scountovf
syedowaisalishah May 6, 2025
cde11e9
feat(zihpm): add Sscofpmf fields to mhpmeventN.layout and regenerate …
syedowaisalishah May 7, 2025
8443702
docs(sscofpmf): add CSR yaml and layout file for scountovf
syedowaisalishah May 7, 2025
4fafb52
Merge branch 'main' into Add-Sscofpmf-csr-yaml
syedowaisalishah May 7, 2025
3a57d26
docs(sscofpmf): add CSR yaml and layout file for scountovf
syedowaisalishah May 8, 2025
76ac31c
Merge branch 'riscv-software-src:main' into Add-Sscofpmf-csr-yaml
syedowaisalishah May 8, 2025
4e8e48d
Merge branch 'Add-Sscofpmf-csr-yaml' of https://github.com/syedowaisa…
syedowaisalishah May 8, 2025
af59d42
docs(sscofpmf): correct CSR yaml and layout file for scountovf
syedowaisalishah May 8, 2025
ada0966
Merge branch 'main' into Add-Sscofpmf-csr-yaml
syedowaisalishah May 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions arch/csr/Sscofpmf/scountovf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# yaml-language-server: $schema=../../../schemas/csr_schema.json
$schema: csr_schema.json#
kind: csr
name: scountovf
long_name: Supervisor Count Overflow (scountovf) Register
address: 0x700
priv_mode: S
length: 32
definedBy: Sscofpmf
description: |
This extension adds the scountovf CSR, a 32-bit read-only
register that contains shadow copies of the OF bits in the 29 mhpmevent CSRs
(mhpmevent3 - mhpmevent31) - where scountovf bit X corresponds to mhpmeventX.

This register enables supervisor-level overflow interrupt handler
software to quickly and easily determine which counter(s) have overflowed
(without needing to make an execution environment call or series of calls ultimately up to M-mode).

Read access to bit X is subject to the same mcounteren (or mcounteren and hcounteren)
CSRs that mediate access to the hpmcounter CSRs by S-mode (or VS-mode).
In M-mode, scountovf bit X is always readable. In S/HS-mode, scountovf bit X is readable
when mcounteren bit X is set, and otherwise reads as zero. Similarly, in VS mode,
scountovf bit X is readable when mcounteren bit X and hcounteren bit X are both set, and otherwise reads as zero

fields:
OF_shadow_bits:
location: 31
type: RO
description: |
Read-only shadow copies of the OF bits from mhpmevent3 to mhpmevent31.
reset_value: UNDEFINED_LEGAL
Loading