gem5
|
#include <faults.hh>
Public Member Functions | |
virtual uint8_t | getVector () const |
Get the vector of an interrupt. More... | |
Protected Member Functions | |
X86FaultBase (const char *_faultName, const char *_mnem, const uint8_t _vector, uint64_t _errorCode=(uint64_t)-1) | |
const char * | name () const |
virtual bool | isBenign () |
virtual const char * | mnemonic () const |
virtual bool | isSoft () |
void | invoke (ThreadContext *tc, const StaticInstPtr &inst=StaticInst::nullStaticInstPtr) |
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 97 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 99 of file faults.hh.
References vector.
Referenced by X86KvmCPU::deliverInterrupts().
|
protectedvirtual |
Reimplemented from FaultBase.
Reimplemented in X86ISA::StartupInterrupt, X86ISA::InitInterrupt, X86ISA::PageFault, X86ISA::InvalidOpcode, X86ISA::X86Abort, and X86ISA::X86Trap.
Definition at line 54 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 83 of file faults.hh.
Referenced by invoke().
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
protected |
Definition at line 59 of file faults.hh.
Referenced by describe(), invoke(), X86ISA::PageFault::invoke(), and X86ISA::PageFault::PageFault().
|
protected |
|
protected |
Definition at line 57 of file faults.hh.
Referenced by mnemonic().
|
protected |
Definition at line 58 of file faults.hh.
Referenced by getVector(), invoke(), and X86ISA::StartupInterrupt::invoke().