|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.models.mips.memory.BreakPointMemory
Memories can be fitted with breakpoints.
Field Summary | |
static int |
BP_IDLE
|
static int |
BP_READALL
|
static int |
BP_READVAL
|
static int |
BP_WRITEALL
|
static int |
BP_WRITEVAL
|
protected BreakPointHandler |
bpHandler
|
protected boolean |
bpHandlerInstalled
|
protected boolean |
debug
|
protected BaseMemory |
mem
|
protected BaseMemory |
readBP
|
protected BaseMemory |
readVal
|
protected BaseMemory |
writeBP
|
protected BaseMemory |
writeVal
|
Constructor Summary | |
BreakPointMemory(int newSize,
int newBits)
|
Method Summary | |
boolean |
getLog()
Get debug mode |
Memory |
getMemory()
For access without breakpoints |
int |
getMemorySize()
Capacity of the memory in words |
Memory |
getReadBPMemory()
For access to read breakpoint memory |
Memory |
getReadValMemory()
For access to read breakpoint value memory |
int |
getWordWidth()
Witdh of one word in bits |
Memory |
getWriteBPMemory()
For access to write breakpoint memory |
Memory |
getWriteValMemory()
For access to write breakpoint value memory |
void |
installBreakPointHandler(BreakPointHandler newBreakPointHandler)
The BreakPointHandler will be called if a breakpoint occurs |
void |
installEntryHandler(EntryHandler entryHandler)
setEntry() calles this EntryHandler |
int |
readMemory(int address)
Read a word from the memory |
void |
setEntry(int entry,
int globalPointer)
Set the entry address if memory contains a executable program |
void |
setLog(boolean newDebug)
Enable or disable logging output |
void |
setReadBP(boolean isBreakPoint,
boolean hasValue,
int adr,
int value)
Set or unset read breakpoint. |
void |
setWriteBP(boolean isBreakPoint,
boolean hasValue,
int adr,
int value)
Set or unset write breakpoint. |
void |
writeMemory(int address,
int word)
Write a word into the memory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BP_IDLE
public static final int BP_READALL
public static final int BP_READVAL
public static final int BP_WRITEALL
public static final int BP_WRITEVAL
protected BaseMemory mem
protected BaseMemory readBP
protected BaseMemory writeBP
protected BaseMemory readVal
protected BaseMemory writeVal
protected BreakPointHandler bpHandler
protected boolean bpHandlerInstalled
protected boolean debug
Constructor Detail |
public BreakPointMemory(int newSize, int newBits)
Method Detail |
public void setReadBP(boolean isBreakPoint, boolean hasValue, int adr, int value)
public void setWriteBP(boolean isBreakPoint, boolean hasValue, int adr, int value)
public Memory getMemory()
public Memory getReadBPMemory()
public Memory getReadValMemory()
public Memory getWriteBPMemory()
public Memory getWriteValMemory()
public void installBreakPointHandler(BreakPointHandler newBreakPointHandler)
public int getWordWidth()
getWordWidth
in interface Memory
public int getMemorySize()
getMemorySize
in interface Memory
public int readMemory(int address)
readMemory
in interface Memory
public void writeMemory(int address, int word)
writeMemory
in interface Memory
public void setEntry(int entry, int globalPointer)
setEntry
in interface Memory
public void installEntryHandler(EntryHandler entryHandler)
installEntryHandler
in interface Memory
public void setLog(boolean newDebug)
Memory
setLog
in interface Memory
public boolean getLog()
Memory
getLog
in interface Memory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |