CDPR Class Reference

#include <DPR.h>

Inheritance diagram for CDPR:

Inheritance graph
[legend]
Collaboration diagram for CDPR:

Collaboration graph
[legend]

Detailed Description

Emulated dual-port RAM and management controller.

Definition at line 78 of file DPR.h.


Public Member Functions

 CDPR (CConfigurator *cfg, class CSystem *c)
 Constructor.
virtual ~CDPR ()
 Destructor.
virtual void init ()
 Initialize the DPR device.
virtual void WriteMem (int index, u64 address, int dsize, u64 data)
virtual u64 ReadMem (int index, u64 address, int dsize)
virtual int SaveState (FILE *f)
 Save state to a Virtual Machine State file.
virtual int RestoreState (FILE *f)
 Restore state from a Virtual Machine State file.
void SaveStateF ()
 Save state to the default DPR rom file.
void RestoreStateF ()
 Restore state from the default DPR rom file.
void SaveStateF (char *fn)
 Save state to a DPR rom file.
void RestoreStateF (char *fn)
 Restore state from a DPR rom file.

Protected Attributes

struct CDPR::SDPR_state state

Data Structures

struct  SDPR_state
 The state structure contains all elements that need to be saved to the statefile. More...

Constructor & Destructor Documentation

CDPR::CDPR ( CConfigurator cfg,
class CSystem c 
)

Constructor.

Definition at line 115 of file DPR.cpp.

References FAILURE, CSystem::RegisterMemory(), theDPR, and U64.

CDPR::~CDPR (  )  [virtual]

Destructor.

Definition at line 396 of file DPR.cpp.


Member Function Documentation

void CDPR::init (  )  [virtual]

void CDPR::WriteMem ( int  index,
u64  address,
int  dsize,
u64  data 
) [virtual]

Reimplemented from CSystemComponent.

Definition at line 412 of file DPR.cpp.

References CSystemComponent::cSystem, CSystem::get_cpu_num(), CDPR::SDPR_state::ram, and state.

u64 CDPR::ReadMem ( int  index,
u64  address,
int  dsize 
) [virtual]

Reimplemented from CSystemComponent.

Definition at line 398 of file DPR.cpp.

References CDPR::SDPR_state::ram, and state.

int CDPR::SaveState ( FILE *  f  )  [virtual]

Save state to a Virtual Machine State file.

Implements CSystemComponent.

Definition at line 644 of file DPR.cpp.

References dpr_magic1, dpr_magic2, and state.

Referenced by SaveStateF().

int CDPR::RestoreState ( FILE *  f  )  [virtual]

Restore state from a Virtual Machine State file.

Implements CSystemComponent.

Definition at line 659 of file DPR.cpp.

References dpr_magic1, dpr_magic2, and state.

Referenced by RestoreStateF().

void CDPR::SaveStateF (  ) 

Save state to the default DPR rom file.

Definition at line 614 of file DPR.cpp.

References CConfigurator::get_text_value(), and CSystemComponent::myCfg.

Referenced by main(), and CTraceEngine::parse().

void CDPR::RestoreStateF (  ) 

Restore state from the default DPR rom file.

Definition at line 719 of file DPR.cpp.

References CConfigurator::get_text_value(), and CSystemComponent::myCfg.

Referenced by init(), and CTraceEngine::parse().

void CDPR::SaveStateF ( char *  fn  ) 

Save state to a DPR rom file.

Definition at line 595 of file DPR.cpp.

References SaveState().

void CDPR::RestoreStateF ( char *  fn  ) 

Restore state from a DPR rom file.

Definition at line 622 of file DPR.cpp.

References RestoreState().


Field Documentation

struct CDPR::SDPR_state CDPR::state [protected]


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

SourceForge.net Logo
Project space on SourceForge.net