예제 #1
0
 def createThreads(self):
     # If no ISAs have been created, assume that the user wants the
     # default ISA.
     if len(self.isa) == 0:
         self.isa = [ ArchISA() for i in range(self.numThreads) ]
     else:
         if len(self.isa) != int(self.numThreads):
             raise RuntimeError("Number of ISA instances doesn't "
                                "match thread count")
     if self.checker != NULL:
         self.checker.createThreads()
예제 #2
0
 def createThreads(self):
     # If no ISAs have been created, assume that the user wants the
     # default ISA.
     if len(self.isa) == 0:
         self.isa = list([ArchISA() for i in range(self.numThreads)])
     else:
         if len(self.isa) != int(self.numThreads):
             raise RuntimeError("Number of ISA instances doesn't "
                                "match thread count")
     if len(self.decoder) != 0:
         raise RuntimeError("Decoders should not be set up manually")
     self.decoder = list([ArchDecoder(isa=isa) for isa in self.isa])
     if self.checker != NULL:
         self.checker.createThreads()