HomeFreeBSD

RISC-V: Implement get_cyclecount(9).

Description

RISC-V: Implement get_cyclecount(9).

Add the missing implementation for get_cyclecount(9) on RISC-V by
reading the cycle CSR.

Submitted by: Mitchell Horne <mhorne063@gmail.com>
Reviewed by: jhb
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D17953

Details

Provenance
markjAuthored on Nov 13 2018, 6:20 PM
Parents
rG1e2ceeb16a74: RISC-V: Add macros for reading performance counter CSRs.
Branches
Unknown
Tags
Unknown

Event Timeline