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 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_CPUID_MIPS_H_ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_CPU_FEATURES_ARCH_MIPS_CPU_MIPS_H_ |
8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_CPUID_MIPS_H_ | 8 #define NATIVE_CLIENT_SRC_TRUSTED_CPU_FEATURES_ARCH_MIPS_CPU_MIPS_H_ |
9 | 9 |
10 #include "native_client/src/include/nacl_compiler_annotations.h" | 10 #include "native_client/src/include/nacl_compiler_annotations.h" |
11 #include "native_client/src/include/nacl_macros.h" | 11 #include "native_client/src/include/nacl_macros.h" |
12 #include "native_client/src/include/portability.h" | 12 #include "native_client/src/include/portability.h" |
13 #include "native_client/src/trusted/validator/ncvalidate.h" | 13 #include "native_client/src/trusted/validator/ncvalidate.h" |
14 | 14 |
15 | 15 |
16 EXTERN_C_BEGIN | 16 EXTERN_C_BEGIN |
17 | 17 |
18 /* List of features supported by MIPS CPUs. */ | 18 /* List of features supported by MIPS CPUs. */ |
19 typedef enum { | 19 typedef enum { |
20 #define NACL_MIPS_CPU_FEATURE(name) NACL_CONCAT(NaClCPUFeatureMips_, name), | 20 #define NACL_MIPS_CPU_FEATURE(name) NACL_CONCAT(NaClCPUFeatureMips_, name), |
21 #include "native_client/src/trusted/validator_mips/cpuid_mips_features.h" | 21 #include "native_client/src/trusted/cpu_features/arch/mips/cpu_mips_features.h" |
22 #undef NACL_MIPS_CPU_FEATURE | 22 #undef NACL_MIPS_CPU_FEATURE |
23 /* Leave the following as the last entry. */ | 23 /* Leave the following as the last entry. */ |
24 NaClCPUFeatureMips_Max | 24 NaClCPUFeatureMips_Max |
25 } NaClCPUFeatureMipsID; | 25 } NaClCPUFeatureMipsID; |
26 | 26 |
27 typedef struct cpu_feature_struct_mips { | 27 typedef struct cpu_feature_struct_mips { |
28 char data[NaClCPUFeatureMips_Max]; | 28 char data[NaClCPUFeatureMips_Max]; |
29 } NaClCPUFeaturesMips; | 29 } NaClCPUFeaturesMips; |
30 | 30 |
31 /* | 31 /* |
(...skipping 20 matching lines...) Expand all Loading... |
52 * code. | 52 * code. |
53 */ | 53 */ |
54 void NaClClearCPUFeaturesMips(NaClCPUFeaturesMips *features); | 54 void NaClClearCPUFeaturesMips(NaClCPUFeaturesMips *features); |
55 /* | 55 /* |
56 * TODO(jfb) The x86 CPU features also offers these functions, which are | 56 * TODO(jfb) The x86 CPU features also offers these functions, which are |
57 * currently notused on MIPS: NaClCopyCPUFeaturesMips, NaClArchSupportedMips. | 57 * currently notused on MIPS: NaClCopyCPUFeaturesMips, NaClArchSupportedMips. |
58 */ | 58 */ |
59 | 59 |
60 EXTERN_C_END | 60 EXTERN_C_END |
61 | 61 |
62 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_CPUID_MIPS_H_ | 62 #endif // NATIVE_CLIENT_SRC_TRUSTED_CPU_FEATURES_ARCH_MIPS_CPU_MIPS_H_ |
OLD | NEW |