gem5
v20.1.0.0
|
#include <faults.hh>
Public Member Functions | |
virtual uint8_t | getVector () const |
Get the vector of an interrupt. More... | |
Public Member Functions inherited from FaultBase | |
virtual | ~FaultBase () |
Protected Member Functions | |
X86FaultBase (const char *_faultName, const char *_mnem, const uint8_t _vector, uint64_t _errorCode=(uint64_t) -1) | |
const char * | name () const override |
virtual bool | isBenign () |
virtual const char * | mnemonic () const |
virtual bool | isSoft () |
void | invoke (ThreadContext *tc, const StaticInstPtr &inst=StaticInst::nullStaticInstPtr) override |
virtual std::string | describe () const |
Protected Attributes | |
const char * | faultName |
const char * | mnem |
uint8_t | vector |
uint64_t | errorCode |
|
inlineprotected |
|
protectedvirtual |
Reimplemented in X86ISA::PageFault.
Definition at line 95 of file faults.cc.
References ccprintf(), errorCode, mnemonic(), and ArmISA::ss.
Referenced by X86ISA::PageFault::describe(), and invoke().
|
inlinevirtual |
Get the vector of an interrupt.
Definition at line 82 of file faults.hh.
References vector.
Referenced by X86KvmCPU::deliverInterrupts().
|
overrideprotectedvirtual |
Reimplemented from FaultBase.
Reimplemented in X86ISA::StartupInterrupt, X86ISA::InitInterrupt, X86ISA::InvalidOpcode, X86ISA::X86Abort, X86ISA::X86Trap, and X86ISA::PageFault.
Definition at line 56 of file faults.cc.
References describe(), DPRINTF, errorCode, FullSystem, X86ISA::INTREG_MICRO(), FaultBase::invoke(), isSoft(), X86ISA::MISCREG_M5_REG, GenericISA::UPCState< MachInst >::nupc(), panic, GenericISA::SimplePCState< MachInst >::pc(), X86ISA::pc, ThreadContext::pcState(), ThreadContext::readMiscRegNoEffect(), romMicroPC(), ThreadContext::setIntReg(), GenericISA::UPCState< MachInst >::upc(), and vector.
Referenced by X86ISA::X86Trap::invoke(), X86ISA::InvalidOpcode::invoke(), and X86ISA::PageFault::invoke().
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Reimplemented in X86ISA::SoftwareInterrupt.
Definition at line 69 of file faults.hh.
Referenced by invoke().
|
inlineprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
protected |
Definition at line 58 of file faults.hh.
Referenced by describe(), invoke(), X86ISA::PageFault::invoke(), and X86ISA::PageFault::PageFault().
|
protected |
|
protected |
Definition at line 56 of file faults.hh.
Referenced by mnemonic().
|
protected |
Definition at line 57 of file faults.hh.
Referenced by getVector(), invoke(), and X86ISA::StartupInterrupt::invoke().