FreeNOS
Public Types | Public Member Functions
ARMCore Class Reference

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...
 

Detailed Description

Class representing an ARM processor core.

Definition at line 256 of file ARMCore.h.

Member Enumeration Documentation

◆ Result

Result codes.

Enumerator
Success 

Definition at line 263 of file ARMCore.h.

Member Function Documentation

◆ logException()

void ARMCore::logException ( CPUState state) const

Log a CPU exception.

Parameters
stateThe 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().

◆ logRegister()

void ARMCore::logRegister ( const char *  name,
u32  reg,
const char *  text = "" 
) const

Log a register.

Parameters
nameName of the register.
regValue of the register.
textAdditional information text.

Definition at line 106 of file ARMCore.cpp.

References Number::Dec, ERROR, and Number::Hex.

Referenced by logState().

◆ logState()

void ARMCore::logState ( CPUState state) const

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