Package ghidra.pcode.memstate
Class MemoryPageBank
java.lang.Object
ghidra.pcode.memstate.MemoryBank
ghidra.pcode.memstate.MemoryPageBank
- Direct Known Subclasses:
FilteredRegisterBank,MemoryPageOverlay
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MapSTL<Long, MemoryPage> Deprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class ghidra.pcode.memstate.MemoryBank
faultHandler -
Constructor Summary
ConstructorsConstructorDescriptionMemoryPageBank(AddressSpace spc, boolean isBigEndian, int ps, MemoryFaultHandler faultHandler) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected MemoryPagegetPage(long addr) Deprecated, for removal: This API element is subject to removal in a future version.protected voidsetPage(long addr, byte[] val, int skip, int size, int bufOffset) Deprecated, for removal: This API element is subject to removal in a future version.This routine writes data only to a single page of the memory bank.protected voidsetPageInitialized(long addr, boolean initialized, int skip, int size, int bufOffset) Deprecated, for removal: This API element is subject to removal in a future version.This routine marks a range within a single page of the memory bank as initialized or uninitialized.Methods inherited from class ghidra.pcode.memstate.MemoryBank
constructValue, deconstructValue, getChunk, getInitializedMaskSize, getMemoryFaultHandler, getPageSize, getSpace, isBigEndian, setChunk, setInitialized
-
Field Details
-
page
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
MemoryPageBank
public MemoryPageBank(AddressSpace spc, boolean isBigEndian, int ps, MemoryFaultHandler faultHandler) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getPage
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPagein classMemoryBank
-
setPage
protected void setPage(long addr, byte[] val, int skip, int size, int bufOffset) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:MemoryBankThis routine writes data only to a single page of the memory bank. Bytes need not be written to the exact start of the page, but all bytes must be written to only one page when using this routine. A page is a fixed number of bytes, and the address of a page is always aligned based on this size. This routine may be overridden for a page based implementation of the MemoryBank. The default implementation writes the page as a sequence of aligned words, using the insert method.- Specified by:
setPagein classMemoryBank- Parameters:
addr- is the aligned offset of the desired pageval- is a pointer to the bytes to be written into the pageskip- is the offset into the page where bytes will be writtensize- is the number of bytes to be writtenbufOffset- the offset in val from which to get the bytes
-
setPageInitialized
protected void setPageInitialized(long addr, boolean initialized, int skip, int size, int bufOffset) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:MemoryBankThis routine marks a range within a single page of the memory bank as initialized or uninitialized. A page is a fixed number of bytes, and the address of a page is always aligned based on this size. This routine may be overridden for a page based implementation of the MemoryBank. The default implementation writes the page as a sequence of aligned words, using the insert method.- Specified by:
setPageInitializedin classMemoryBank- Parameters:
addr- is the aligned offset of the desired pageinitialized- true if range should be marked as initialized, false if uninitializedskip- is the offset into the page where bytes will be writtensize- is the number of bytes to be writtenbufOffset- the offset in val from which to get the bytes
-