- """ these computations should come out of the macho header i think """
- """ where does kern.arch come from? what's kern.arch == armv8?? """
- if kern.arch in ('arm'):
- cputype = CPU_TYPE_ARM
- cpusubtype = CPU_SUBTYPE_ARM_V7
- elif kern.arch in ('armv8', 'arm64'):
- cputype = CPU_TYPE_ARM64
- cpusubtype = CPU_SUBTYPE_ARMV8
-
- super(UserProcess, self).__init__(cputype, cpusubtype, ptrsize)
+ super(UserProcess, self).__init__(self.cputype, self.cpusubtype, ptrsize)