Class UniqueMemoryBank

java.lang.Object
ghidra.pcode.memstate.MemoryBank
ghidra.pcode.memstate.UniqueMemoryBank

public class UniqueMemoryBank extends MemoryBank
An subclass of MemoryBank intended for modeling the "unique" memory space. The space is byte-addressable and paging is not supported.
  • Field Details

  • Constructor Details

    • UniqueMemoryBank

      public UniqueMemoryBank(AddressSpace spc, boolean isBigEndian)
  • Method Details

    • getPage

      protected MemoryPage getPage(long addr)
      Specified by:
      getPage in class MemoryBank
    • setPage

      protected void setPage(long addr, byte[] val, int skip, int size, int bufOffset)
      Specified by:
      setPage in class MemoryBank
    • setPageInitialized

      protected void setPageInitialized(long addr, boolean initialized, int skip, int size, int bufOffset)
      Specified by:
      setPageInitialized in class MemoryBank
    • getChunk

      public int getChunk(long offset, int size, byte[] dest, boolean stopOnUninitialized)
      Overrides:
      getChunk in class MemoryBank
    • setChunk

      public void setChunk(long offset, int size, byte[] src)
      Overrides:
      setChunk in class MemoryBank
    • clear

      public void clear()
      Clear unique storage at the start of an instruction