Lines Matching refs:cls
51 def is_cpu_class(cls):
57 return issubclass(cls, m5.objects.BaseCPU) and \
58 not cls.abstract and \
59 not issubclass(cls, m5.objects.CheckerCPU)
66 def tester(cls):
67 return cpu_class is not None and cls is not None and \
68 issubclass(cls, cpu_class)
91 for name, cls in _cpu_classes.items():
96 doc = inspect.getdoc(cls)
130 for name, cls in inspect.getmembers(m5.objects, is_cpu_class):
131 _cpu_classes[name] = cls
145 for name, cls in inspect.getmembers(module, is_cpu_class):
146 _cpu_classes[name] = cls