You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cycle/instret/time/hmpcountern CSRs are optionally accessible from U-mode. In Ibex we hardwire mcounteren to 0 meaning these counters cannot be accessed from U-mode. However they are still accessible from M-mode. Ibex currently doesn't implement them at all which isn't standards compliant. They should be implemented.
The text was updated successfully, but these errors were encountered:
I have asked the riscv-privileged list if my understanding here is correct but it looks pretty clear from the spec and the fact the compliance tests specifically test accessing these CSRs from M mode.
After some further digging there's an argument you don't need to implement these going by the latest spec draft, if you don't implement Zicntr (which we don't currently). I'm going to push this out of M2.5 due to this ambiguity. Solution here is likely to implement Zicntr.
The cycle/instret/time/hmpcountern CSRs are optionally accessible from U-mode. In Ibex we hardwire
mcounteren
to 0 meaning these counters cannot be accessed from U-mode. However they are still accessible from M-mode. Ibex currently doesn't implement them at all which isn't standards compliant. They should be implemented.The text was updated successfully, but these errors were encountered: