|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MemoryInterface
This implements the basic memory interface.
Copyright (c) 2004, 2005 Cmpware, Inc. All Rights Reserved.
| Method Summary | |
|---|---|
void |
clearProfile()
This method clears the profile table. |
byte[] |
get()
This method returns the byte array used to represent the memory. |
int |
getBaseAddress()
This method returns the current base address of the memory. |
boolean |
getEndian()
This method returns the endian (byte order) of the memory. |
int |
getMaxProfile()
This method returns the largest value currently in the profile table. |
int[] |
getProfile()
This method returns the current memory access profile data as an array of integers. |
int |
getProfile(int addr)
This method returns the number of times an address has been visited by the Program Counter. |
int |
getProfileGranularity()
This method returns the profile granularity. |
boolean |
isValidAddress(int addr)
This method returns true if the address is valid and false otherwise. |
void |
profile(int addr)
This method increments the profile count for a particular address. |
void |
resize(int size)
This method resizes the memory array. |
void |
setBaseAddress(int baseAddr)
This method sets the base address of the memory. |
void |
setEndian(boolean endian)
This method sets the endian (byte order) of the memory. |
int |
size()
This method returns the size of the memory. |
| Methods inherited from interface com.cmpware.cmp.memory.ReadWriteInterface |
|---|
isReadable, isWriteable, read, read16, read24, read32, read64, write, write16, write24, write32, write64 |
| Method Detail |
|---|
byte[] get()
void resize(int size)
size - The size of the new memory array in bytes.int size()
void setBaseAddress(int baseAddr)
baseAddr - The base address.int getBaseAddress()
boolean getEndian()
void setEndian(boolean endian)
endian - The endian (either Memory.BIG or
Memory.LITTLE).boolean isValidAddress(int addr)
addr - The address.
int[] getProfile()
void profile(int addr)
addr - The address.int getProfile(int addr)
addr - The address.
int getProfileGranularity()
void clearProfile()
int getMaxProfile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||