cva6 icon indicating copy to clipboard operation
cva6 copied to clipboard

Support for MCYCLEH, MINSTRETH, CYCLEH, TIMEH and INSTRETH in 32-bit mode

Open spersvold opened this issue 3 years ago • 1 comments

Hi,

In 32-bit mode it would be nice to get access to the full 64-bit wide cycle and instruction counters for precision timing. Currently there's an exception of code references these CSR registers.

I'm attaching a patch that adds support for this. Please consider. 0001-Added-support-for-MCYCLEH-MINSTRETH-CYCLEH-TIMEH-and.patch.txt

Thanks! -- Steffen

spersvold avatar Mar 29 '22 23:03 spersvold

I've also added a pull request #847

spersvold avatar Mar 30 '22 01:03 spersvold

A pull-request to address this issue (#847) has been merged in, so I will close this issue.

MikeOpenHWGroup avatar Feb 17 '23 02:02 MikeOpenHWGroup