gem5 v24.0.0.0
|
#include <faults.hh>
Public Member Functions | |
SyscallFault (PrivilegeMode prv) | |
void | invokeSE (ThreadContext *tc, const StaticInstPtr &inst) override |
Public Member Functions inherited from gem5::FaultBase | |
virtual | ~FaultBase () |
Additional Inherited Members | |
Protected Member Functions inherited from gem5::RiscvISA::RiscvFault | |
RiscvFault (FaultName n, FaultType ft, ExceptionCode c) | |
FaultName | name () const override |
bool | isInterrupt () const |
bool | isNonMaskableInterrupt () const |
ExceptionCode | exception () const |
virtual RegVal | trap_value () const |
void | invoke (ThreadContext *tc, const StaticInstPtr &inst) override |
Protected Attributes inherited from gem5::RiscvISA::RiscvFault | |
const FaultName | _name |
const FaultType | _fault_type |
ExceptionCode | _code |
|
inline |
Definition at line 311 of file faults.hh.
References gem5::RiscvISA::RiscvFault::_code, gem5::RiscvISA::ECALL_MACHINE, gem5::RiscvISA::ECALL_SUPER, gem5::RiscvISA::ECALL_USER, panic, gem5::RiscvISA::PRV_M, gem5::RiscvISA::PRV_S, and gem5::RiscvISA::PRV_U.
|
overridevirtual |
Reimplemented from gem5::RiscvISA::RiscvFault.
Definition at line 240 of file faults.cc.
References gem5::StaticInst::advancePC(), gem5::PCStateBase::as(), gem5::ThreadContext::getSystemPtr(), gem5::ThreadContext::pcState(), gem5::Workload::syscall(), and gem5::System::workload.