Re: Requirements on implementing cycle/instret/hpmcountern


Greg Favor
 

On Wed, Jan 25, 2023 at 7:44 AM Jeff Scott <jeff.scott@...> wrote:

Agree.  I am not sure why “time” was a CSR in the first place.  Maybe that is the problem?  Defining a CSR that lives outside the core is strange.


"mtime" resides outside the core (as a memory-mapped register).  "time" - as a delayed copy of "mtime" - resides inside the core as a CSR that can be quickly accessed (in implementations that don't do trap and emulate).

Greg

Join {tech-privileged@lists.riscv.org to automatically receive all group messages.