if arch == 'X86_64' or arch == 'X86_32':
checklist.append(OptCheck('MICROCODE', 'y', 'defconfig', 'self_protection')) # is needed for mitigating CPU bugs
checklist.append(OptCheck('RETPOLINE', 'y', 'defconfig', 'self_protection'))
checklist.append(OptCheck('X86_SMAP', 'y', 'defconfig', 'self_protection'))
checklist.append(OR(OptCheck('X86_UMIP', 'y', 'defconfig', 'self_protection'), \
OptCheck('X86_INTEL_UMIP', 'y', 'defconfig', 'self_protection')))
if arch == 'X86_64' or arch == 'X86_32':
checklist.append(OptCheck('MICROCODE', 'y', 'defconfig', 'self_protection')) # is needed for mitigating CPU bugs
checklist.append(OptCheck('RETPOLINE', 'y', 'defconfig', 'self_protection'))
checklist.append(OptCheck('X86_SMAP', 'y', 'defconfig', 'self_protection'))
checklist.append(OR(OptCheck('X86_UMIP', 'y', 'defconfig', 'self_protection'), \
OptCheck('X86_INTEL_UMIP', 'y', 'defconfig', 'self_protection')))