Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

alistair23
Copy link
Contributor

Pull Request Overview

This fixes #2490 by using the generic RISC-V architecture version of mtimer for all of the RISC-V chips.

Testing Strategy

CI

TODO or Help Wanted

N/A

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

@github-actions github-actions bot added the WG-OpenTitan In the purview of the OpenTitan working group. label Apr 7, 2021
Copy link
Contributor

@hudson-ayers hudson-ayers left a comment

Choose a reason for hiding this comment

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

Generally looks good, but seems like we could cut out some boilerplate

@hudson-ayers hudson-ayers force-pushed the alistair/riscv-timer branch from 6844c4e to 78f5987 Compare April 7, 2021 17:19
@hudson-ayers
Copy link
Contributor

Sorry, I didn't mean to push that directly to your branch, so I pushed it back. hudson-ayers@6844c4e is a commit that constructs the mtimer only once, if you are happy with it. It makes the constructors no longer const, but we don't need them to be const anymore anyway

@alistair23
Copy link
Contributor Author

Ah, I didn't think about using the static address to do it!

Thanks for that. Do you mind fixing up the SiFive CLINT as well?

Feel free to push the changes to this branch/PR.

hudson-ayers
hudson-ayers previously approved these changes Apr 7, 2021
@bradjc
Copy link
Contributor

bradjc commented Apr 8, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 8, 2021

@bors bors bot merged commit 915b4a2 into tock:master Apr 8, 2021
@alistair23 alistair23 deleted the alistair/riscv-timer branch April 9, 2021 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WG-OpenTitan In the purview of the OpenTitan working group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consolidate mtime and mtimecmp implementation
3 participants