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

arch-riscv: skip diff when reading perfCnt CSRs #247

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Conversation

happy-lx
Copy link
Contributor

make magic number more readable
skip diff when reading from these CSRs:

  • CSR_MCYCLE
  • CSR_MINSTRET
  • CSR_MMHPMCOUNTER3 -- CSR_MMHPMCOUNTER31
  • CSR_MHPMCOUNTER03 -- CSR_MHPMCOUNTER31
  • CSR_MMCOUNTINHIBIT -- CSR_MHPMEVENT31
  • CSR_CYCLE -- CSR_HPMCOUNTER31

Change-Id: I56026af0388555efa08d4b2ca6ebaabde9b81e92

* make magic number more readable
* skip diff when reading csr from:
    CSR_MCYCLE
    CSR_MINSTRET
    CSR_MMHPMCOUNTER3 -- CSR_MMHPMCOUNTER31
    CSR_MHPMCOUNTER03 -- CSR_MHPMCOUNTER31
    CSR_MMCOUNTINHIBIT -- CSR_MHPMEVENT31
    CSR_CYCLE -- CSR_HPMCOUNTER31

Change-Id: I56026af0388555efa08d4b2ca6ebaabde9b81e92
@happy-lx happy-lx merged commit 5182ebd into xs-dev Jan 2, 2025
9 checks passed
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.

3 participants