Package ghidra.pcode.memstate
Class UniqueMemoryBank
- java.lang.Object
-
- ghidra.pcode.memstate.MemoryBank
-
- ghidra.pcode.memstate.UniqueMemoryBank
-
public class UniqueMemoryBank extends MemoryBank
-
-
Field Summary
Fields Modifier and Type Field Description protected MapSTL<java.lang.Long,byte[]>map-
Fields inherited from class ghidra.pcode.memstate.MemoryBank
faultHandler
-
-
Constructor Summary
Constructors Constructor Description UniqueMemoryBank(AddressSpace spc, boolean isBigEndian)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear unique storage at the start of an instructionintgetChunk(long addrOffset, int size, byte[] res, boolean ignoreFault)protected MemoryPagegetPage(long addr)voidsetChunk(long offset, int size, byte[] val)protected voidsetPage(long addr, byte[] val, int skip, int size, int bufOffset)protected voidsetPageInitialized(long addr, boolean initialized, int skip, int size, int bufOffset)-
Methods inherited from class ghidra.pcode.memstate.MemoryBank
constructValue, deconstructValue, getInitializedMaskSize, getMemoryFaultHandler, getPageSize, getSpace, isBigEndian, setInitialized
-
-
-
-
Field Detail
-
map
protected MapSTL<java.lang.Long,byte[]> map
-
-
Constructor Detail
-
UniqueMemoryBank
public UniqueMemoryBank(AddressSpace spc, boolean isBigEndian)
-
-
Method Detail
-
getPage
protected MemoryPage getPage(long addr)
- Specified by:
getPagein classMemoryBank
-
setPage
protected void setPage(long addr, byte[] val, int skip, int size, int bufOffset)- Specified by:
setPagein classMemoryBank
-
setPageInitialized
protected void setPageInitialized(long addr, boolean initialized, int skip, int size, int bufOffset)- Specified by:
setPageInitializedin classMemoryBank
-
getChunk
public int getChunk(long addrOffset, int size, byte[] res, boolean ignoreFault)- Overrides:
getChunkin classMemoryBank
-
setChunk
public void setChunk(long offset, int size, byte[] val)- Overrides:
setChunkin classMemoryBank
-
clear
public void clear()
Clear unique storage at the start of an instruction
-
-