ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
#include "RV32IMACFDFuncs.h"
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) |
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().
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().
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().
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().
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().
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().
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().
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().
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().
void RV32IMACFD_raise | ( | ETISS_CPU *const | cpu, |
ETISS_System *const | system, | ||
void *const *const | plugin_pointers, | ||
etiss_int32 | irq, | ||
etiss_uint32 | mcause | ||
) |
Definition at line 337 of file RV32IMACFDFuncs.c.
References etiss_coverage_count, ETISS_CPU::exception, ETISS_CPU::instructionPointer, ETISS_CPU::return_pending, RV32IMACFD_csr_read(), RV32IMACFD_csr_write(), RV32IMACFD_get_field(), RV32IMACFD_set_field(), and s.
Referenced by RV32IMACFD_check_irq(), RV32IMACFD_get_rm(), and RV32IMACFD_translate_exc_code().
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().
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().
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().