gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Protected Member Functions | Protected Attributes | List of all members
RiscvISA::RiscvFault Class Reference

#include <faults.hh>

Inheritance diagram for RiscvISA::RiscvFault:
FaultBase RiscvISA::BreakpointFault RiscvISA::IllegalFrmFault RiscvISA::SyscallFault RiscvISA::UnimplementedFault RiscvISA::UnknownInstFault

Protected Member Functions

 RiscvFault (FaultName n, ExceptionCode c, InterruptCode i)
 
FaultName name () const
 
ExceptionCode exception () const
 
InterruptCode interrupt () const
 
virtual void invoke_se (ThreadContext *tc, const StaticInstPtr &inst)
 
void invoke (ThreadContext *tc, const StaticInstPtr &inst)
 

Protected Attributes

const FaultName _name
 
const ExceptionCode _code
 
const InterruptCode _int
 

Additional Inherited Members

Detailed Description

Definition at line 71 of file faults.hh.

Constructor & Destructor Documentation

RiscvISA::RiscvFault::RiscvFault ( FaultName  n,
ExceptionCode  c,
InterruptCode  i 
)
inlineprotected

Definition at line 78 of file faults.hh.

Member Function Documentation

ExceptionCode RiscvISA::RiscvFault::exception ( ) const
inlineprotected

Definition at line 89 of file faults.hh.

References _code.

InterruptCode RiscvISA::RiscvFault::interrupt ( ) const
inlineprotected

Definition at line 95 of file faults.hh.

References _int.

void RiscvFault::invoke ( ThreadContext tc,
const StaticInstPtr inst 
)
protectedvirtual

Reimplemented from FaultBase.

Definition at line 47 of file faults.cc.

References RiscvISA::advancePC(), FullSystem, invoke_se(), panic, and ThreadContext::pcState().

void RiscvFault::invoke_se ( ThreadContext tc,
const StaticInstPtr inst 
)
protectedvirtual
FaultName RiscvISA::RiscvFault::name ( ) const
inlineprotectedvirtual

Implements FaultBase.

Definition at line 83 of file faults.hh.

References _name.

Referenced by invoke_se().

Member Data Documentation

const ExceptionCode RiscvISA::RiscvFault::_code
protected

Definition at line 75 of file faults.hh.

Referenced by exception().

const InterruptCode RiscvISA::RiscvFault::_int
protected

Definition at line 76 of file faults.hh.

Referenced by interrupt().

const FaultName RiscvISA::RiscvFault::_name
protected

Definition at line 74 of file faults.hh.

Referenced by name().


The documentation for this class was generated from the following files:

Generated on Fri Jun 9 2017 13:04:35 for gem5 by doxygen 1.8.6