code: def set_state(self, state):
          
  
          # Sanity check
          if REGION_MAPPING not in state.options:
              # add REGION_MAPPING into state.options
              l.warning('Option "REGION_MAPPING" must be enabled when using SimAbstractMemory as the memory model. '
                        'The option is added to state options as a courtesy.'
                        )
              state.options.add(REGION_MAPPING)
  
          SimMemory.set_state(self, state)
  
          for _,v in self._regions.items():
              v.set_state(state)
  
          # Delayed initialization of backer argument from __init__
          if self._temp_backer is not None:
              for region, backer_dict in self._temp_backer.items():
                  self._regions[region] = MemoryRegion(region, self.state,
                                                       init_memory=True,
                                                       backer_dict=backer_dict,
                                                       endness=self.endness
                                                       )
              self._temp_backer = None
docs: Overriding the SimStatePlugin.set_state() method
  
          :param state: A SimState object
          :return: None