Skip to content
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 mcountinhibit module #213

Merged
merged 1 commit into from
May 24, 2024

Conversation

rmsyn
Copy link
Contributor

@rmsyn rmsyn commented May 21, 2024

Adds the riscv::register::mcountinhibit module for the mcountinhibit CSR.

@rmsyn rmsyn requested a review from a team as a code owner May 21, 2024 04:17
Copy link
Contributor

@romancardenas romancardenas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

About returning a result/option: I think it is better if we assert for now and discuss in #212 about transitioning to a panic-less strategy

riscv/src/register/mcountinhibit.rs Show resolved Hide resolved
riscv/src/register/mcountinhibit.rs Outdated Show resolved Hide resolved
riscv/src/register/mcountinhibit.rs Outdated Show resolved Hide resolved
riscv/src/register/mcountinhibit.rs Outdated Show resolved Hide resolved
riscv/src/register/mcountinhibit.rs Outdated Show resolved Hide resolved
riscv/src/register/mcountinhibit.rs Outdated Show resolved Hide resolved
@rmsyn rmsyn force-pushed the register/mcountinhibit branch 3 times, most recently from 10f4b25 to b1acbfd Compare May 22, 2024 00:57
romancardenas
romancardenas previously approved these changes May 23, 2024
Copy link
Contributor

@romancardenas romancardenas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@romancardenas romancardenas added this pull request to the merge queue May 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 23, 2024
@romancardenas
Copy link
Contributor

Clippy is complaining in merge queue: https://github.com/rust-embedded/riscv/actions/runs/9201547297

@rmsyn please can you update your PR?

@rmsyn
Copy link
Contributor Author

rmsyn commented May 24, 2024

Clippy is complaining in merge queue: https://github.com/rust-embedded/riscv/actions/runs/9201547297

@rmsyn please can you update your PR?

Did something change from the PR CI runs? I fixed the comment clippy was unhappy with, but it was unrelated to my code changes...

Adds the `riscv::register::mcountinhibit` module for the `mcountinhibit`
CSR.
Copy link
Contributor

@romancardenas romancardenas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

seems that nightly has new lints that previously didn't trigger

@romancardenas romancardenas added this pull request to the merge queue May 24, 2024
Merged via the queue into rust-embedded:master with commit 2fc23fe May 24, 2024
95 checks passed
@rmsyn rmsyn deleted the register/mcountinhibit branch May 25, 2024 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants