#include <DPR.h>


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... | |
| CDPR::CDPR | ( | CConfigurator * | cfg, | |
| class CSystem * | c | |||
| ) |
| void CDPR::init | ( | ) | [virtual] |
Initialize the DPR device.
Reimplemented from CSystemComponent.
Definition at line 127 of file DPR.cpp.
References CSystemComponent::cSystem, CSystemComponent::devid_string, CSystem::get_cpu(), CSystem::get_cpu_num(), CAlphaCPU::get_speed(), CDPR::SDPR_state::ram, RestoreStateF(), state, and ToBCD.
Reimplemented from CSystemComponent.
Definition at line 412 of file DPR.cpp.
References CSystemComponent::cSystem, CSystem::get_cpu_num(), CDPR::SDPR_state::ram, and state.
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 | ) |
| void CDPR::RestoreStateF | ( | char * | fn | ) |
Restore state from a DPR rom file.
Definition at line 622 of file DPR.cpp.
References RestoreState().
struct CDPR::SDPR_state CDPR::state [protected] |
Referenced by init(), ReadMem(), RestoreState(), SaveState(), and WriteMem().