ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Functions
RV32IMACFDFuncs.c File Reference
#include "RV32IMACFDFuncs.h"
Include dependency graph for RV32IMACFDFuncs.c:

Go to the source code of this file.

Functions

etiss_uint8 RV32IMACFD_extension_enabled (ETISS_CPU *const cpu, ETISS_System *const system, void *const *const plugin_pointers, etiss_int8 extension)
 Generated on Thu, 24 Oct 2024 10:16:12 +0200. More...
 
etiss_uint8 RV32IMACFD_get_rm (ETISS_CPU *const cpu, ETISS_System *const system, void *const *const plugin_pointers, etiss_uint8 rm)
 
etiss_uint32 RV32IMACFD_sstatus_mask (ETISS_CPU *const cpu, ETISS_System *const system, void *const *const plugin_pointers)
 
etiss_uint32 RV32IMACFD_mstatus_mask (ETISS_CPU *const cpu, ETISS_System *const system, void *const *const plugin_pointers)
 
etiss_uint32 RV32IMACFD_csr_read (ETISS_CPU *const cpu, ETISS_System *const system, void *const *const plugin_pointers, etiss_uint32 csr)
 
void RV32IMACFD_csr_write (ETISS_CPU *const cpu, ETISS_System *const system, void *const *const plugin_pointers, etiss_uint32 csr, etiss_uint32 val)
 
etiss_uint64 RV32IMACFD_get_field (etiss_uint64 reg, etiss_uint64 mask)
 
etiss_uint64 RV32IMACFD_set_field (etiss_uint64 reg, etiss_uint64 mask, etiss_uint64 val)
 
etiss_uint8 RV32IMACFD_ctz (etiss_uint64 val)
 
void RV32IMACFD_raise (ETISS_CPU *const cpu, ETISS_System *const system, void *const *const plugin_pointers, etiss_int32 irq, etiss_uint32 mcause)
 
void RV32IMACFD_translate_exc_code (ETISS_CPU *const cpu, ETISS_System *const system, void *const *const plugin_pointers, etiss_int32 cause)
 
etiss_uint32 RV32IMACFD_calc_irq_mcause (ETISS_CPU *const cpu, ETISS_System *const system, void *const *const plugin_pointers)
 
void RV32IMACFD_check_irq (ETISS_CPU *const cpu, ETISS_System *const system, void *const *const plugin_pointers)
 

Function Documentation

◆ RV32IMACFD_calc_irq_mcause()

etiss_uint32 RV32IMACFD_calc_irq_mcause ( ETISS_CPU *const  cpu,
ETISS_System *const  system,
void *const *const  plugin_pointers 
)

Definition at line 488 of file RV32IMACFDFuncs.c.

References etiss_coverage_count, RV32IMACFD_csr_read(), RV32IMACFD_ctz(), and RV32IMACFD_get_field().

Referenced by RV32IMACFD_check_irq(), and RV32IMACFD_translate_exc_code().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RV32IMACFD_check_irq()

void RV32IMACFD_check_irq ( ETISS_CPU *const  cpu,
ETISS_System *const  system,
void *const *const  plugin_pointers 
)

Definition at line 600 of file RV32IMACFDFuncs.c.

References etiss_coverage_count, RV32IMACFD_calc_irq_mcause(), and RV32IMACFD_raise().

Here is the call graph for this function:

◆ RV32IMACFD_csr_read()

etiss_uint32 RV32IMACFD_csr_read ( ETISS_CPU *const  cpu,
ETISS_System *const  system,
void *const *const  plugin_pointers,
etiss_uint32  csr 
)

Definition at line 102 of file RV32IMACFDFuncs.c.

References etiss_coverage_count, etiss_get_cycles(), etiss_get_instret(), and etiss_get_time().

Referenced by RV32IMACFD_calc_irq_mcause(), and RV32IMACFD_raise().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RV32IMACFD_csr_write()

void RV32IMACFD_csr_write ( ETISS_CPU *const  cpu,
ETISS_System *const  system,
void *const *const  plugin_pointers,
etiss_uint32  csr,
etiss_uint32  val 
)

Definition at line 183 of file RV32IMACFDFuncs.c.

References etiss_coverage_count, RV32IMACFD_mstatus_mask(), and RV32IMACFD_sstatus_mask().

Referenced by RV32IMACFD_raise().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RV32IMACFD_ctz()

etiss_uint8 RV32IMACFD_ctz ( etiss_uint64  val)

Definition at line 251 of file RV32IMACFDFuncs.c.

References etiss_coverage_count.

Referenced by RV32IMACFD_calc_irq_mcause().

Here is the caller graph for this function:

◆ RV32IMACFD_extension_enabled()

etiss_uint8 RV32IMACFD_extension_enabled ( ETISS_CPU *const  cpu,
ETISS_System *const  system,
void *const *const  plugin_pointers,
etiss_int8  extension 
)

Generated on Thu, 24 Oct 2024 10:16:12 +0200.

This file contains the function implementations for the RV32IMACFD core architecture.

Definition at line 9 of file RV32IMACFDFuncs.c.

References etiss_coverage_count.

Referenced by RV32IMACFD_sstatus_mask().

Here is the caller graph for this function:

◆ RV32IMACFD_get_field()

etiss_uint64 RV32IMACFD_get_field ( etiss_uint64  reg,
etiss_uint64  mask 
)

Definition at line 222 of file RV32IMACFDFuncs.c.

References etiss_coverage_count.

Referenced by RV32IMACFD_calc_irq_mcause(), RV32IMACFD_raise(), and RV32IMACFD_sstatus_mask().

Here is the caller graph for this function:

◆ RV32IMACFD_get_rm()

etiss_uint8 RV32IMACFD_get_rm ( ETISS_CPU *const  cpu,
ETISS_System *const  system,
void *const *const  plugin_pointers,
etiss_uint8  rm 
)

Definition at line 20 of file RV32IMACFDFuncs.c.

References etiss_coverage_count, and RV32IMACFD_raise().

Here is the call graph for this function:

◆ RV32IMACFD_mstatus_mask()

etiss_uint32 RV32IMACFD_mstatus_mask ( ETISS_CPU *const  cpu,
ETISS_System *const  system,
void *const *const  plugin_pointers 
)

Definition at line 89 of file RV32IMACFDFuncs.c.

References etiss_coverage_count, and RV32IMACFD_sstatus_mask().

Referenced by RV32IMACFD_csr_write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RV32IMACFD_raise()

void RV32IMACFD_raise ( ETISS_CPU *const  cpu,
ETISS_System *const  system,
void *const *const  plugin_pointers,
etiss_int32  irq,
etiss_uint32  mcause 
)

◆ RV32IMACFD_set_field()

etiss_uint64 RV32IMACFD_set_field ( etiss_uint64  reg,
etiss_uint64  mask,
etiss_uint64  val 
)

Definition at line 240 of file RV32IMACFDFuncs.c.

References etiss_coverage_count.

Referenced by RV32IMACFD_raise().

Here is the caller graph for this function:

◆ RV32IMACFD_sstatus_mask()

etiss_uint32 RV32IMACFD_sstatus_mask ( ETISS_CPU *const  cpu,
ETISS_System *const  system,
void *const *const  plugin_pointers 
)

Definition at line 43 of file RV32IMACFDFuncs.c.

References etiss_coverage_count, RV32IMACFD_extension_enabled(), and RV32IMACFD_get_field().

Referenced by RV32IMACFD_csr_write(), and RV32IMACFD_mstatus_mask().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RV32IMACFD_translate_exc_code()

void RV32IMACFD_translate_exc_code ( ETISS_CPU *const  cpu,
ETISS_System *const  system,
void *const *const  plugin_pointers,
etiss_int32  cause 
)

Definition at line 427 of file RV32IMACFDFuncs.c.

References etiss_coverage_count, RV32IMACFD_calc_irq_mcause(), and RV32IMACFD_raise().

Referenced by RV32IMACFDArch::handleException().

Here is the call graph for this function:
Here is the caller graph for this function: