Flash.cpp File Reference


Detailed Description

Contains the code for the emulated Flash ROM devices.

Id
Flash.cpp,v 1.19 2008/03/24 22:11:50 iamcamiel Exp

X-1.19 Camiel Vanderhoeven 24-MAR-2008 Comments.

X-1.18 Camiel Vanderhoeven 17-MAR-2008 Always set volatile DPR rom contents.

X-1.17 Camiel Vanderhoeven 14-MAR-2008 Formatting.

X-1.16 Camiel Vanderhoeven 14-MAR-2008 1. More meaningful exceptions replace throwing (int) 1. 2. U64 macro replaces X64 macro.

X-1.15 Camiel Vanderhoeven 30-DEC-2007 Print file id on initialization.

X-1.14 Camiel Vanderhoeven 28-DEC-2007 Throw exceptions rather than just exiting when errors occur.

X-1.13 Camiel Vanderhoeven 17-DEC-2007 SaveState file format 2.1

X-1.12 Camiel Vanderhoeven 10-DEC-2007 Changes to make the TraceEngine work again after recent changes.

X-1.11 Camiel Vanderhoeven 10-DEC-2007 Use configurator.

X-1.10 Camiel Vanderhoeven 31-MAR-2007 Added old changelog comments.

X-1.9 Camiel Vanderhoeven 16-FEB-2007 Added functions SaveStateF and RestoreStateF.

X-1.8 Brian Wheeler 13-FEB-2007 Formatting.

X-1.7 Camiel Vanderhoeven 12-FEB-2007 Added comments.

X-1.6 Camiel Vanderhoeven 9-FEB-2007 Added comments.

X-1.5 Camiel Vanderhoeven 7-FEB-2007 Calls to trace_dev now use the TRC_DEVx macro's.

X-1.4 Brian Wheeler 3-FEB-2007 Formatting.

X-1.3 Brian Wheeler 3-FEB-2007 64-bit literals made compatible with Linux/GCC/glibc.

X-1.2 Brian Wheeler 3-FEB-2007 Includes are now case-correct (necessary on Linux)

X-1.1 Camiel Vanderhoeven 19-JAN-2007 Initial version in CVS.

Author:
Camiel Vanderhoeven (camiel@camicom.com / http://www.camicom.com)

Definition in file Flash.cpp.

#include "StdAfx.h"
#include "Flash.h"
#include "System.h"
#include "AlphaCPU.h"

Go to the source code of this file.

Defines

#define MODE_READ   0
#define MODE_STEP1   1
#define MODE_STEP2   2
#define MODE_AUTOSEL   3
#define MODE_PROGRAM   4
#define MODE_ERASE_STEP3   5
#define MODE_ERASE_STEP4   6
#define MODE_ERASE_STEP5   7
#define MODE_CONFIRM_0   8
#define MODE_CONFIRM_1   9

Variables

CAlphaCPUcpu [4]
static u32 flash_magic1 = 0xFF3E3FF3
static u32 flash_magic2 = 0x3FF3E3FF
CFlashtheSROM = 0


Define Documentation

#define MODE_AUTOSEL   3

Definition at line 101 of file Flash.cpp.

Referenced by CFlash::ReadMem(), and CFlash::WriteMem().

#define MODE_CONFIRM_0   8

Definition at line 106 of file Flash.cpp.

Referenced by CFlash::ReadMem().

#define MODE_CONFIRM_1   9

Definition at line 107 of file Flash.cpp.

Referenced by CFlash::ReadMem(), and CFlash::WriteMem().

#define MODE_ERASE_STEP3   5

Definition at line 103 of file Flash.cpp.

Referenced by CFlash::WriteMem().

#define MODE_ERASE_STEP4   6

Definition at line 104 of file Flash.cpp.

Referenced by CFlash::WriteMem().

#define MODE_ERASE_STEP5   7

Definition at line 105 of file Flash.cpp.

Referenced by CFlash::WriteMem().

#define MODE_PROGRAM   4

Definition at line 102 of file Flash.cpp.

Referenced by CFlash::WriteMem().

#define MODE_READ   0

Definition at line 98 of file Flash.cpp.

Referenced by CFlash::CFlash(), CFlash::ReadMem(), and CFlash::WriteMem().

#define MODE_STEP1   1

Definition at line 99 of file Flash.cpp.

Referenced by CFlash::WriteMem().

#define MODE_STEP2   2

Definition at line 100 of file Flash.cpp.

Referenced by CFlash::WriteMem().


Variable Documentation

u32 flash_magic1 = 0xFF3E3FF3 [static]

Definition at line 359 of file Flash.cpp.

Referenced by CFlash::RestoreState(), and CFlash::SaveState().

u32 flash_magic2 = 0x3FF3E3FF [static]

Definition at line 360 of file Flash.cpp.

Referenced by CFlash::RestoreState(), and CFlash::SaveState().

Definition at line 436 of file Flash.cpp.

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


SourceForge.net Logo
Project space on SourceForge.net