-
Notifications
You must be signed in to change notification settings - Fork 78
Add missing CSRs #1236
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
base: main
Are you sure you want to change the base?
Add missing CSRs #1236
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Copyright (c) Salil Mittal | ||
| # SPDX-License-Identifier: BSD-3-Clause-Clear | ||
|
|
||
| # yaml-language-server: $schema=../../../schemas/csr_schema.json | ||
|
|
||
| $schema: "csr_schema.json#" | ||
| kind: csr | ||
| name: dscratch0 | ||
| long_name: Debug scratch register | ||
| address: 0x7B2 | ||
| priv_mode: D | ||
| definedBy: Sdext | ||
| length: MXLEN | ||
| description: | | ||
| Optional scratch register that can be used by implementations that need it. A debugger must | ||
| not write to this register unless hartinfo explicitly mentions it (the Debug Module may use this | ||
| register internally). | ||
| writable: true | ||
| fields: | ||
| VALUE: | ||
| location_rv32: 31-0 | ||
| location_rv64: 63-0 | ||
| description: | | ||
| Scratch field to hold a value used by debug routines. | ||
| type: RW-H | ||
| reset_value: 0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Copyright (c) Salil Mittal | ||
| # SPDX-License-Identifier: BSD-3-Clause-Clear | ||
|
|
||
| # yaml-language-server: $schema=../../../schemas/csr_schema.json | ||
|
|
||
| $schema: "csr_schema.json#" | ||
| kind: csr | ||
| name: dscratch1 | ||
| long_name: Debug scratch register | ||
| address: 0x7B3 | ||
| priv_mode: D | ||
| definedBy: Sdext | ||
| length: MXLEN | ||
| description: | | ||
| Optional scratch register that can be used by implementations that need it. A debugger must | ||
| not write to this register unless hartinfo explicitly mentions it (the Debug Module may use this | ||
| register internally). | ||
| writable: true | ||
| fields: | ||
| VALUE: | ||
| location_rv32: 31-0 | ||
| location_rv64: 63-0 | ||
| description: | | ||
| Scratch field to hold a value used by debug routines. | ||
| type: RW-H | ||
| reset_value: 0 |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,41 @@ | ||||||||
| # Copyright (c) Salil Mittal | ||||||||
| # SPDX-License-Identifier: BSD-3-Clause-Clear | ||||||||
|
|
||||||||
| # yaml-language-server: $schema=../../../schemas/csr_schema.json | ||||||||
|
|
||||||||
| $schema: "csr_schema.json#" | ||||||||
| kind: csr | ||||||||
| name: sie | ||||||||
| long_name: Supervisor interrupt-enable register | ||||||||
| address: 0x104 | ||||||||
| priv_mode: S | ||||||||
| definedBy: S | ||||||||
| length: XLEN | ||||||||
| description: Supervisor interrupt-enable register. | ||||||||
| writable: true | ||||||||
| fields: | ||||||||
| SSIE: | ||||||||
| location: 1 | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| description: | | ||||||||
| Supervisor Software Interrupt Enable | ||||||||
| type: RW | ||||||||
| reset_value: UNDEFINED_LEGAL | ||||||||
| STIE: | ||||||||
| location: 5 | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| description: | | ||||||||
| Supervisor Timer Interrupt Enable | ||||||||
| type: RO-H | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| reset_value: UNDEFINED_LEGAL | ||||||||
| SEIE: | ||||||||
| location: 9 | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| description: | | ||||||||
| Supervisor External Interrupt Enable | ||||||||
| type: RO-H | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| reset_value: UNDEFINED_LEGAL | ||||||||
| LCOFIE: | ||||||||
| location: 13 | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| description: | | ||||||||
| Local Counter Overflow Interrupt Enable | ||||||||
| type: RW-H | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| reset_value: UNDEFINED_LEGAL | ||||||||
| definedBy: Sscofpmf | ||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.