Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(859)

Side by Side Diff: src/trusted/validator_ragel/unreviewed/validator_features_validator.c

Issue 11864002: Move CPU features into its own static library. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Address bsy's comments by not building x86 target when host isn't x86. This is how things are curre… Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « src/trusted/validator_ragel/unreviewed/validator_features_all.c ('k') | src/trusted/validator_x86/ncval.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698