Exemplo n.º 1
0
 def __init__(self, filename):
     from amoco.system.loader import read_program
     self.rom = read_program(filename)
     self.ivt = IVT(self.rom, offset=self.IVT_offset)
     assert self.ivt.self != 0
     ILR = DataIO(self.rom[0:4096])
     RawExec.__init__(self, ILR, cpu=cpu_armv7)
     start = self.ivt.self - self.IVT_offset
     self.relocate(start)
     if self.ivt.boot_data:
         self.boot_data = BootData(self.mmap, self.ivt.boot_data)
         off = self.boot_data.start - start
         data = self.rom[off:off + self.boot_data.size]
     self.mmap.write(self.boot_data.start, data)
     assert self.ivt.csf
     self.csf = CSF(self.mmap, self.ivt.csf)
Exemplo n.º 2
0
 def __init__(self, p):
     RawExec.__init__(self, p, cpu)