ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Functions
libCSRCounters.h File Reference
#include "etiss/jit/CPU.h"
#include "etiss/jit/System.h"
Include dependency graph for libCSRCounters.h:

Go to the source code of this file.

Functions

etiss_uint64 etiss_get_time ()
 
etiss_uint64 etiss_get_cycles (ETISS_CPU *const cpu, ETISS_System *const system, void *const *const plugin_pointers)
 
etiss_uint64 etiss_get_instret (ETISS_CPU *const cpu, ETISS_System *const system, void *const *const plugin_pointers)
 

Function Documentation

◆ etiss_get_cycles()

etiss_uint64 etiss_get_cycles ( ETISS_CPU *const  cpu,
ETISS_System *const  system,
void *const *const  plugin_pointers 
)

Definition at line 13 of file CSRCounters.cpp.

References ETISS_CPU::cpuCycleTime_ps, and ETISS_CPU::cpuTime_ps.

Referenced by RV32IMACFD_csr_read(), and RV64IMACFD_csr_read().

Here is the caller graph for this function:

◆ etiss_get_instret()

etiss_uint64 etiss_get_instret ( ETISS_CPU *const  cpu,
ETISS_System *const  system,
void *const *const  plugin_pointers 
)

Definition at line 26 of file CSRCounters.cpp.

References ETISS_CPU::cpuCycleTime_ps, and ETISS_CPU::cpuTime_ps.

Referenced by RV32IMACFD_csr_read(), and RV64IMACFD_csr_read().

Here is the caller graph for this function:

◆ etiss_get_time()

etiss_uint64 etiss_get_time ( )

Definition at line 18 of file CSRCounters.cpp.

Referenced by RV32IMACFD_csr_read(), and RV64IMACFD_csr_read().

Here is the caller graph for this function: