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

[Bug report] Kronos overcounts the retired instructions #10

Open
flaviens opened this issue May 15, 2023 · 0 comments
Open

[Bug report] Kronos overcounts the retired instructions #10

flaviens opened this issue May 15, 2023 · 0 comments

Comments

@flaviens
Copy link
Contributor

Hi there!

Bug description

I think I found a bug not described in the issues and PRs in this repo.
minstret seems to overcount.

Example snippet

The stored value of t0 should be 0, however with Kronos it is 1.

  .section ".text.init","ax",@progbits
  .globl _start
  .align 2
_start:

  li a0, 0x10

  csrrw zero, minstret, zero
  csrrw t0, minstret, zero

  sw t0, (a0)
  sw zero, (zero)

infinite_loop0:
  j infinite_loop0

Notes

The same bug is found in BOOM and Vexriscv.

Thanks!

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

No branches or pull requests

1 participant