- java.lang.Object
-
- com.ibm.dtfj.addressspace.CommonAddressSpace
-
- All Implemented Interfaces:
IAbstractAddressSpace
- Direct Known Subclasses:
DumpReaderAddressSpace
,LayeredAddressSpace
,SimpleAddressSpace
public abstract class CommonAddressSpace extends Object implements IAbstractAddressSpace
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CommonAddressSpace(MemoryRange[] translations, boolean isLittleEndian, boolean is64Bit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MemoryRange
_residentRange(int asid, long address)
protected static int
compareAddress(int lasid, long lhs, int rasid, long rhs)
protected static int
findWhichMemoryRange(int asid, long addr, MemoryRange[] ranges, Integer lastRange, boolean doLinearIfNotFound)
This searches memory ranges for an addr using a binary chop and returns an int indicating the memory range or -1 if address is not within any memory range......byte[]
getMemoryBytes(int asid, long vaddr, int size)
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface com.ibm.dtfj.addressspace.IAbstractAddressSpace
bytesPerPointer, findPattern, getByteAt, getByteOrder, getBytesAt, getIntAt, getLongAt, getMemoryBytes, getMemoryRanges, getPointerAt, getShortAt, isExecutable, isReadOnly, isShared
-
-
-
-
Constructor Detail
-
CommonAddressSpace
protected CommonAddressSpace(MemoryRange[] translations, boolean isLittleEndian, boolean is64Bit)
-
-
Method Detail
-
_residentRange
protected MemoryRange _residentRange(int asid, long address) throws MemoryAccessException
- Throws:
MemoryAccessException
-
findWhichMemoryRange
protected static int findWhichMemoryRange(int asid, long addr, MemoryRange[] ranges, Integer lastRange, boolean doLinearIfNotFound)
This searches memory ranges for an addr using a binary chop and returns an int indicating the memory range or -1 if address is not within any memory range......- Parameters:
asid
- TODO
-
compareAddress
protected static int compareAddress(int lasid, long lhs, int rasid, long rhs)
-
getMemoryBytes
public byte[] getMemoryBytes(int asid, long vaddr, int size)
-
-