ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Functions
CSRCounters.cpp File Reference
#include <cstdint>
#include "etiss/CPUArch.h"
#include "etiss/jit/CPU.h"
#include "etiss/CPUCore.h"
#include "etiss/ETISS.h"
#include <chrono>
Include dependency graph for CSRCounters.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

◆ etiss_get_cycles()

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()

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()

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: