def METHOD_NAME(self):
    if self.filetype == 'elf':
        for segment in self.elf.iter_segments(type='PT_LOAD'):
            self.ql.mem.write(segment['p_paddr'], segment.data())
        # TODO: load symbol table
    elif self.filetype == 'bin':
        with open(self.ql.path, 'rb') as f:
            self.ql.mem.write(self.map_address, f.read())
    else: # self.filetype == 'hex':
        for begin, data in self.ihex.segments:
            self.ql.mem.write(begin, data)
    self.ql.arch.init_context()
    self.entry_point = self.ql.arch.regs.read('pc')