-
Notifications
You must be signed in to change notification settings - Fork 162
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
riscv: add CSR-defining macros #219
Commits on Oct 17, 2024
-
riscv: add CSR-defining macros
Adds helper macros for defining CSR types.
Configuration menu - View commit details
-
Copy full SHA for a169176 - Browse repository at this point
Copy the full SHA a169176View commit details -
riscv: add enum branch to CSR macro
Adds the ability to define CSR types using an enum field type.
Configuration menu - View commit details
-
Copy full SHA for 9c431a7 - Browse repository at this point
Copy the full SHA 9c431a7View commit details -
fixup: fixes for rebase on latest HEAD
Adds corrections to CSR creation macros for rebase on commit `a4d69614`. Includes: - additions of `try_*` function variants for fallible functions. - changing doc string macro arguments to idiomatic `///` comments
Configuration menu - View commit details
-
Copy full SHA for 7f4f1f6 - Browse repository at this point
Copy the full SHA 7f4f1f6View commit details -
fixup: riscv: do not repeat macro field arguments
Replaces repeated field bit and range arguments with a single `bit` or `range` argument. Intended to reduce copy-paste, prevent typo errors, and clarify intent.
Configuration menu - View commit details
-
Copy full SHA for a1c8119 - Browse repository at this point
Copy the full SHA a1c8119View commit details -
riscv: add try variants to read-only CSR macros
Adds `try_*` variants for fallible getter functions on read-only CSR macros.
Configuration menu - View commit details
-
Copy full SHA for 49682f0 - Browse repository at this point
Copy the full SHA 49682f0View commit details -
riscv: add try variants to write-only CSR macros
Adds `try_*` variants for fallible getter functions on write-only CSR macros.
Configuration menu - View commit details
-
Copy full SHA for 6cf867d - Browse repository at this point
Copy the full SHA 6cf867dView commit details -
riscv: modularize CSR macro field helpers
Modularizes the `read_only_csr_field` and `write_only_csr_field` macro helpers for re-use in `read_write_only_csr_field`.
Configuration menu - View commit details
-
Copy full SHA for 3084b6c - Browse repository at this point
Copy the full SHA 3084b6cView commit details -
riscv: add explicit mask field to CSR macros
Adds the explicit `mask:` field name to CSR helper macros to clarify intent.
Configuration menu - View commit details
-
Copy full SHA for 0367601 - Browse repository at this point
Copy the full SHA 0367601View commit details -
riscv: add field label to CSR macros
Adds the `field` macro argument label to CSR helper macros to clarify intent.
Configuration menu - View commit details
-
Copy full SHA for db53e90 - Browse repository at this point
Copy the full SHA db53e90View commit details -
fixup: riscv: remove field args from CSR macro
Removes field arguments from CSR definition macros.
Configuration menu - View commit details
-
Copy full SHA for 6e41d3a - Browse repository at this point
Copy the full SHA 6e41d3aView commit details -
fixup: riscv: remove CSR number from csr macro
Removes the unused `csr` number argument from the `csr` macro.
Configuration menu - View commit details
-
Copy full SHA for ec6ef2b - Browse repository at this point
Copy the full SHA ec6ef2bView commit details -
fixup: riscv: use result for CSR enum conversion
Uses the crate result type for converting a CSR enum type from a `usize`.
Configuration menu - View commit details
-
Copy full SHA for ac99986 - Browse repository at this point
Copy the full SHA ac99986View commit details -
fixup: riscv: read-only CSR compile-time asserts
Applies compile-time checks in read-only CSR macros. Authored-by: rmsyn <[email protected]> Co-authored-by: romancardenas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cc061bd - Browse repository at this point
Copy the full SHA cc061bdView commit details -
fixup: riscv: write-only CSR compile-time asserts
Applies compile-time checks in write-only CSR macros. Authored-by: rmsyn <[email protected]> Co-authored-by: romancardenas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cb9310b - Browse repository at this point
Copy the full SHA cb9310bView commit details -
fixup: riscv: remove equality check in CSR macros
Removes the equality check for range branches in CSR helper macros. Users who want a single-bit field, i.e. `start == end`, should use the single-bit branch variants. Authored-by: rmsyn <[email protected]> Co-authored-by: romancardenas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 87ebf67 - Browse repository at this point
Copy the full SHA 87ebf67View commit details -
fixup: riscv: remove CSR macro enum creation branch
Removes CSR helper macro branches that include field enum type creation. Leaves the creation of the field enum to the separate `csr_field_enum` macro, or manual definition of the field enum. Authored-by: rmsyn <[email protected]> Co-authored-by: romancardenas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b7c3049 - Browse repository at this point
Copy the full SHA b7c3049View commit details -
riscv: use paste for CSR helper macros
Uses the [`paste`](https://docs.rs/paste) dependency for concatenating idents in CSR helper macros.
Configuration menu - View commit details
-
Copy full SHA for c7f6e75 - Browse repository at this point
Copy the full SHA c7f6e75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00dc02b - Browse repository at this point
Copy the full SHA 00dc02bView commit details -
Re-exports the `paste` macro to allow using CSR helper macros in external crates. Authored-by: rmsyn <[email protected]> Co-authored-by: romancardenas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b568220 - Browse repository at this point
Copy the full SHA b568220View commit details