Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Public Member Functions | List of all members
leon3_funclt_trap::LEON3_ABIIf Class Reference

#include <interface.hpp>

Inheritance diagram for leon3_funclt_trap::LEON3_ABIIf:
Collaboration diagram for leon3_funclt_trap::LEON3_ABIIf:

Public Member Functions

 LEON3_ABIIf (unsigned int &PROGRAM_LIMIT, MemoryInterface &dataMem, Reg32_0 &PSR, Reg32_1 &WIM, Reg32_2 &TBR, Reg32_3 &Y, Reg32_3 &PC, Reg32_3 &NPC, RegisterBankClass &GLOBAL, Reg32_3 *WINREGS, Reg32_3 *ASR, Alias &FP, Alias &LR, Alias &SP, Alias &PCR, Alias *REGS, bool &instrExecuting, sc_event &instrEndEvent)
 
bool isLittleEndian () const throw ()
 
int getProcessorID () const throw ()
 
bool isInstrExecuting () const throw ()
 
void waitInstrEnd () const throw ()
 
void preCall () throw ()
 
void postCall () throw ()
 
void returnFromCall () throw ()
 
bool isRoutineEntry (const InstructionBase *instr) throw ()
 
bool isRoutineExit (const InstructionBase *instr) throw ()
 
unsigned chargetState () const throw ()
 
void setState (unsigned char *state) throw ()
 
void setExitValue (unsigned int value) throw ()
 
unsigned int getExitValue () throw ()
 
unsigned int getCodeLimit ()
 
unsigned int readLR () const throw ()
 
void setLR (const unsigned int &newValue) throw ()
 
unsigned int readPC () const throw ()
 
void setPC (const unsigned int &newValue) throw ()
 
unsigned int readSP () const throw ()
 
void setSP (const unsigned int &newValue) throw ()
 
unsigned int readFP () const throw ()
 
void setFP (const unsigned int &newValue) throw ()
 
unsigned int readRetVal () const throw ()
 
void setRetVal (const unsigned int &newValue) throw ()
 
std::vector< unsigned intreadArgs () const throw ()
 
void setArgs (const std::vector< unsigned int > &args) throw ()
 
unsigned int readGDBReg (const unsigned int &gdbId) const throw ()
 
unsigned int nGDBRegs () const throw ()
 
void setGDBReg (const unsigned int &newValue, const unsigned int &gdbId) throw ()
 
unsigned int readMem (const unsigned int &address)
 
unsigned char readCharMem (const unsigned int &address)
 
void writeMem (const unsigned int &address, unsigned int datum)
 
void writeCharMem (const unsigned int &address, unsigned char datum)
 
virtual ~LEON3_ABIIf ()
 
- Public Member Functions inherited from trap::ABIIf< unsigned int >
bool matchEndian () const throw ()
 
virtual ~ABIIf ()
 

Constructor & Destructor Documentation

leon3_funclt_trap::LEON3_ABIIf::LEON3_ABIIf ( unsigned int PROGRAM_LIMIT,
MemoryInterface dataMem,
Reg32_0 PSR,
Reg32_1 WIM,
Reg32_2 TBR,
Reg32_3 Y,
Reg32_3 PC,
Reg32_3 NPC,
RegisterBankClass GLOBAL,
Reg32_3 WINREGS,
Reg32_3 ASR,
Alias FP,
Alias LR,
Alias SP,
Alias PCR,
Alias REGS,
bool instrExecuting,
sc_event &  instrEndEvent 
)
leon3_funclt_trap::LEON3_ABIIf::~LEON3_ABIIf ( )
virtual

Member Function Documentation

unsigned int leon3_funclt_trap::LEON3_ABIIf::getCodeLimit ( )
virtual
unsigned int leon3_funclt_trap::LEON3_ABIIf::getExitValue ( )
throw (
)
virtual

Implements trap::ABIIf< unsigned int >.

References exitValue.

Referenced by sc_main().

int leon3_funclt_trap::LEON3_ABIIf::getProcessorID ( ) const
throw (
)
virtual

Reimplemented from trap::ABIIf< unsigned int >.

unsigned char * leon3_funclt_trap::LEON3_ABIIf::getState ( ) const
throw (
)
virtual

Implements trap::ABIIf< unsigned int >.

References Y.

bool leon3_funclt_trap::LEON3_ABIIf::isInstrExecuting ( ) const
throw (
)
virtual
bool leon3_funclt_trap::LEON3_ABIIf::isLittleEndian ( ) const
throw (
)
virtual
bool leon3_funclt_trap::LEON3_ABIIf::isRoutineEntry ( const InstructionBase instr)
throw (
)
virtual
bool leon3_funclt_trap::LEON3_ABIIf::isRoutineExit ( const InstructionBase instr)
throw (
)
virtual
unsigned int leon3_funclt_trap::LEON3_ABIIf::nGDBRegs ( ) const
throw (
)
virtual
void leon3_funclt_trap::LEON3_ABIIf::postCall ( )
throw (
)
virtual

Reimplemented from trap::ABIIf< unsigned int >.

References i, and key_CWP.

void leon3_funclt_trap::LEON3_ABIIf::preCall ( )
throw (
)
virtual

Reimplemented from trap::ABIIf< unsigned int >.

References i, and key_CWP.

std::vector< unsigned int > leon3_funclt_trap::LEON3_ABIIf::readArgs ( ) const
throw (
)
virtual

Implements trap::ABIIf< unsigned int >.

References usi.shell::args().

Here is the call graph for this function:

unsigned char leon3_funclt_trap::LEON3_ABIIf::readCharMem ( const unsigned int address)
virtual
unsigned int leon3_funclt_trap::LEON3_ABIIf::readFP ( ) const
throw (
)
virtual

Reimplemented from trap::ABIIf< unsigned int >.

unsigned int leon3_funclt_trap::LEON3_ABIIf::readGDBReg ( const unsigned int gdbId) const
throw (
)
virtual

Implements trap::ABIIf< unsigned int >.

References Y.

unsigned int leon3_funclt_trap::LEON3_ABIIf::readLR ( ) const
throw (
)
virtual

Reimplemented from trap::ABIIf< unsigned int >.

unsigned int leon3_funclt_trap::LEON3_ABIIf::readMem ( const unsigned int address)
virtual
unsigned int leon3_funclt_trap::LEON3_ABIIf::readPC ( ) const
throw (
)
virtual
unsigned int leon3_funclt_trap::LEON3_ABIIf::readRetVal ( ) const
throw (
)
virtual
unsigned int leon3_funclt_trap::LEON3_ABIIf::readSP ( ) const
throw (
)
virtual

Reimplemented from trap::ABIIf< unsigned int >.

void leon3_funclt_trap::LEON3_ABIIf::returnFromCall ( )
throw (
)
virtual

Reimplemented from trap::ABIIf< unsigned int >.

void leon3_funclt_trap::LEON3_ABIIf::setArgs ( const std::vector< unsigned int > &  args)
throw (
)
virtual

Implements trap::ABIIf< unsigned int >.

References usi.shell::args(), and THROW_EXCEPTION.

Here is the call graph for this function:

void leon3_funclt_trap::LEON3_ABIIf::setExitValue ( unsigned int  value)
throw (
)
virtual

Implements trap::ABIIf< unsigned int >.

References exitValue.

void leon3_funclt_trap::LEON3_ABIIf::setFP ( const unsigned int newValue)
throw (
)
virtual

Reimplemented from trap::ABIIf< unsigned int >.

void leon3_funclt_trap::LEON3_ABIIf::setGDBReg ( const unsigned int newValue,
const unsigned int gdbId 
)
throw (
)
virtual

Implements trap::ABIIf< unsigned int >.

References THROW_EXCEPTION, and Y.

void leon3_funclt_trap::LEON3_ABIIf::setLR ( const unsigned int newValue)
throw (
)
virtual

Reimplemented from trap::ABIIf< unsigned int >.

void leon3_funclt_trap::LEON3_ABIIf::setPC ( const unsigned int newValue)
throw (
)
virtual
void leon3_funclt_trap::LEON3_ABIIf::setRetVal ( const unsigned int newValue)
throw (
)
virtual
void leon3_funclt_trap::LEON3_ABIIf::setSP ( const unsigned int newValue)
throw (
)
virtual

Reimplemented from trap::ABIIf< unsigned int >.

void leon3_funclt_trap::LEON3_ABIIf::setState ( unsigned char state)
throw (
)
virtual

Implements trap::ABIIf< unsigned int >.

References Y.

void leon3_funclt_trap::LEON3_ABIIf::waitInstrEnd ( ) const
throw (
)
virtual

Implements trap::ABIIf< unsigned int >.

References pysc::api::systemc::wait().

Here is the call graph for this function:

void leon3_funclt_trap::LEON3_ABIIf::writeCharMem ( const unsigned int address,
unsigned char  datum 
)
virtual
void leon3_funclt_trap::LEON3_ABIIf::writeMem ( const unsigned int address,
unsigned int  datum 
)
virtual

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