| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include "native_client/src/trusted/validator/x86/nacl_cpuid.h" | 7 #include "native_client/src/trusted/cpu_features/arch/x86/cpu_x86.h" |
| 8 | 8 |
| 9 /* Emulate features of old validator to simplify testing */ | 9 /* Emulate features of old validator to simplify testing */ |
| 10 NaClCPUFeaturesX86 kValidatorCPUIDFeatures = { | 10 NaClCPUFeaturesX86 kValidatorCPUIDFeatures = { |
| 11 { | 11 { |
| 12 1, /* NaClCPUFeatureX86_CPUIDSupported */ | 12 1, /* NaClCPUFeatureX86_CPUIDSupported */ |
| 13 1, /* NaClCPUFeatureX86_CPUSupported */ | 13 1, /* NaClCPUFeatureX86_CPUSupported */ |
| 14 1, /* NaClCPUFeatureX86_3DNOW */ /* AMD-specific */ | 14 1, /* NaClCPUFeatureX86_3DNOW */ /* AMD-specific */ |
| 15 0, /* NaClCPUFeatureX86_AES */ | 15 0, /* NaClCPUFeatureX86_AES */ |
| 16 0, /* NaClCPUFeatureX86_AVX */ | 16 0, /* NaClCPUFeatureX86_AVX */ |
| 17 0, /* NaClCPUFeatureX86_BMI1 */ | 17 0, /* NaClCPUFeatureX86_BMI1 */ |
| (...skipping 24 matching lines...) Expand all Loading... |
| 42 1, /* NaClCPUFeatureX86_SSE41 */ | 42 1, /* NaClCPUFeatureX86_SSE41 */ |
| 43 1, /* NaClCPUFeatureX86_SSE42 */ | 43 1, /* NaClCPUFeatureX86_SSE42 */ |
| 44 1, /* NaClCPUFeatureX86_SSE4A */ /* AMD-specific */ | 44 1, /* NaClCPUFeatureX86_SSE4A */ /* AMD-specific */ |
| 45 1, /* NaClCPUFeatureX86_SSSE3 */ | 45 1, /* NaClCPUFeatureX86_SSSE3 */ |
| 46 0, /* NaClCPUFeatureX86_TBM */ /* AMD-specific */ | 46 0, /* NaClCPUFeatureX86_TBM */ /* AMD-specific */ |
| 47 1, /* NaClCPUFeatureX86_TSC */ | 47 1, /* NaClCPUFeatureX86_TSC */ |
| 48 1, /* NaClCPUFeatureX86_x87 */ | 48 1, /* NaClCPUFeatureX86_x87 */ |
| 49 0 /* NaClCPUFeatureX86_XOP */ /* AMD-specific */ | 49 0 /* NaClCPUFeatureX86_XOP */ /* AMD-specific */ |
| 50 } | 50 } |
| 51 }; | 51 }; |
| OLD | NEW |