Class UniqueMemoryBank


  • public class UniqueMemoryBank
    extends MemoryBank
    • Field Detail

      • map

        protected MapSTL<java.lang.Long,​byte[]> map
    • Constructor Detail

      • UniqueMemoryBank

        public UniqueMemoryBank​(AddressSpace spc,
                                boolean isBigEndian)
    • Method Detail

      • 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 addrOffset,
                            int size,
                            byte[] res,
                            boolean ignoreFault)
        Overrides:
        getChunk in class MemoryBank
      • setChunk

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

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