| 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_CPUID_ARCH_H | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_CPUID_ARCH_H |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_CPUID_ARCH_H | 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_CPUID_ARCH_H |
| 9 | 9 |
| 10 #include "native_client/src/include/nacl_base.h" | 10 #include "native_client/src/include/nacl_base.h" |
| 11 | 11 |
| 12 #if NACL_ARCH(NACL_TARGET_ARCH) == NACL_x86 | 12 #if NACL_ARCH(NACL_TARGET_ARCH) == NACL_x86 |
| 13 | 13 |
| 14 #include "native_client/src/trusted/validator/x86/nacl_cpuid.h" | 14 #include "native_client/src/trusted/validator/x86/nacl_cpuid.h" |
| 15 typedef NaClCPUFeaturesX86 NaClCPUFeatures; | 15 typedef NaClCPUFeaturesX86 NaClCPUFeatures; |
| 16 | 16 |
| 17 #elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_arm | 17 #elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_arm |
| 18 | 18 |
| 19 #include "native_client/src/trusted/validator_arm/cpuid_arm.h" | 19 #include "native_client/src/trusted/validator_arm/cpuid_arm.h" |
| 20 typedef NaClCPUFeaturesArm NaClCPUFeatures; | 20 typedef NaClCPUFeaturesArm NaClCPUFeatures; |
| 21 | 21 |
| 22 #elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_mips |
| 23 |
| 24 #include "native_client/src/trusted/validator_mips/cpuid_mips.h" |
| 25 typedef NaClCPUFeaturesMips NaClCPUFeatures; |
| 26 |
| 22 #else | 27 #else |
| 23 | 28 |
| 24 #error Unknown platform! | 29 #error Unknown platform! |
| 25 | 30 |
| 26 #endif | 31 #endif |
| 27 | 32 |
| 28 | 33 |
| 29 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_CPUID_ARCH_H */ | 34 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_CPUID_ARCH_H */ |
| OLD | NEW |