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 void
clear()
Clear unique storage at the start of an instructionint
getChunk(long addrOffset, int size, byte[] res, boolean ignoreFault)
protected MemoryPage
getPage(long addr)
void
setChunk(long offset, int size, byte[] val)
protected void
setPage(long addr, byte[] val, int skip, int size, int bufOffset)
protected void
setPageInitialized(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:
getPage
in classMemoryBank
-
setPage
protected void setPage(long addr, byte[] val, int skip, int size, int bufOffset)
- Specified by:
setPage
in classMemoryBank
-
setPageInitialized
protected void setPageInitialized(long addr, boolean initialized, int skip, int size, int bufOffset)
- Specified by:
setPageInitialized
in classMemoryBank
-
getChunk
public int getChunk(long addrOffset, int size, byte[] res, boolean ignoreFault)
- Overrides:
getChunk
in classMemoryBank
-
setChunk
public void setChunk(long offset, int size, byte[] val)
- Overrides:
setChunk
in classMemoryBank
-
clear
public void clear()
Clear unique storage at the start of an instruction
-
-