Package ghidra.pcode.memstate
Class MemoryPageOverlay
java.lang.Object
ghidra.pcode.memstate.MemoryBank
ghidra.pcode.memstate.MemoryPageBank
ghidra.pcode.memstate.MemoryPageOverlay
- Direct Known Subclasses:
FilteredMemoryPageOverlay
Memory bank that overlays some other memory bank, using a "copy on write" behavior.
Pages are copied from the underlying object only when there is a write. The underlying access routines are overridden to make optimal use of this page implementation. The underlying memory bank can be a null pointer in which case, this memory bank behaves as if it were initially filled with zeros.
-
Field Summary
FieldsFields inherited from class ghidra.pcode.memstate.MemoryPageBank
page
Fields inherited from class ghidra.pcode.memstate.MemoryBank
faultHandler
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryPageOverlay
(AddressSpace spc, MemoryBank ul, MemoryFaultHandler faultHandler) A page overlay memory bank needs all the parameters for a generic memory bank and it needs to know the underlying memory bank being overlayed. -
Method Summary
Methods inherited from class ghidra.pcode.memstate.MemoryPageBank
setPage, setPageInitialized
Methods inherited from class ghidra.pcode.memstate.MemoryBank
constructValue, deconstructValue, getChunk, getInitializedMaskSize, getMemoryFaultHandler, getPageSize, getSpace, isBigEndian, setChunk, setInitialized
-
Field Details
-
underlie
-
-
Constructor Details
-
MemoryPageOverlay
A page overlay memory bank needs all the parameters for a generic memory bank and it needs to know the underlying memory bank being overlayed.- Parameters:
spc
- is the address space associated with the memory bankul
- is the underlying MemoryBankfaultHandler
-
-
-
Method Details
-
getPage
- Overrides:
getPage
in classMemoryPageBank
-