FreeNOS
|
Class representing an ARM processor core. More...
#include <ARMCore.h>
Public Types | |
enum | Result { Success = 0 } |
Result codes. More... | |
Public Member Functions | |
void | logException (CPUState *state) const |
Log a CPU exception. More... | |
void | logState (CPUState *state) const |
Log the CPU state. More... | |
void | logRegister (const char *name, u32 reg, const char *text="") const |
Log a register. More... | |
enum ARMCore::Result |
void ARMCore::logException | ( | CPUState * | state | ) | const |
Log a CPU exception.
state | The current CPU state. |
Definition at line 22 of file ARMCore.cpp.
References logState().
Referenced by ARMKernel::dataAbort(), ARMKernel::interrupt(), ARMKernel::prefetchAbort(), ARMKernel::reserved(), and ARMKernel::undefinedInstruction().
void ARMCore::logRegister | ( | const char * | name, |
u32 | reg, | ||
const char * | text = "" |
||
) | const |
Log a register.
name | Name of the register. |
reg | Value of the register. |
text | Additional information text. |
Definition at line 106 of file ARMCore.cpp.
References Number::Dec, ERROR, and Number::Hex.
Referenced by logState().
void ARMCore::logState | ( | CPUState * | state | ) | const |
Log the CPU state.
state | The current CPU state. |
Definition at line 27 of file ARMCore.cpp.
References CPUState::cpsr, ARMControl::DataFaultAddress, ARMControl::DataFaultStatus, ARMControl::InstructionFaultAddress, ARMControl::InstructionFaultStatus, logRegister(), CPUState::lr, CPUState::pc, CPUState::r0, CPUState::r1, CPUState::r10, CPUState::r11, CPUState::r12, CPUState::r2, CPUState::r3, CPUState::r4, CPUState::r5, CPUState::r6, CPUState::r7, CPUState::r8, CPUState::r9, ARMControl::read(), and CPUState::sp.
Referenced by logException().