Index: head/sys/riscv/include/cpu.h =================================================================== --- head/sys/riscv/include/cpu.h +++ head/sys/riscv/include/cpu.h @@ -38,6 +38,7 @@ #define _MACHINE_CPU_H_ #include +#include #include #define TRAPF_PC(tfp) ((tfp)->tf_ra) @@ -86,8 +87,7 @@ get_cyclecount(void) { - /* TODO: This is bogus */ - return (1); + return (rdcycle()); } #endif