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 Change Modifier and Type Field Description NEW protected MapSTL<java.lang.Long,byte[]>map-
Fields inherited from class ghidra.pcode.memstate.MemoryBank
faultHandler
-
-
Constructor Summary
Constructors Change Constructor Description UniqueMemoryBank(AddressSpace spc, boolean isBigEndian)
-
Method Summary
All Methods Instance Methods Concrete Methods Change Modifier and Type Method Description voidclear()Clear unique storage at the start of an instructionintgetChunk(long addrOffset, int size, byte[] res, boolean ignoreFault)NEW protected MemoryPagegetPage(long addr)voidsetChunk(long offset, int size, byte[] val)protected voidsetPage(long addr, byte[] val, int skip, int size, int bufOffset)NEW 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
Constructor Detail
-
UniqueMemoryBank
public UniqueMemoryBank(AddressSpace spc, boolean isBigEndian)
-
-
Method Detail
-
getPage NEW
protected MemoryPage getPage(long addr)
- Specified by:
getPagein classMemoryBank
-
setPage NEW
protected void setPage(long addr, byte[] val, int skip, int size, int bufOffset)- Specified by:
setPagein classMemoryBank
-
setPageInitialized NEW
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
-
-