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

Unified Diff: src/trusted/validator_arm/cpuid_arm.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/validator_arm/build.scons ('k') | src/trusted/validator_arm/cpuid_arm.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator_arm/cpuid_arm.h
diff --git a/src/trusted/validator_arm/cpuid_arm.h b/src/trusted/validator_arm/cpuid_arm.h
deleted file mode 100644
index c007914cc802deb85b686f0fa71c4f8971f462ca..0000000000000000000000000000000000000000
--- a/src/trusted/validator_arm/cpuid_arm.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright (c) 2012 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_CPUID_ARM_H
-#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_CPUID_ARM_H
-
-#include "native_client/src/include/nacl_compiler_annotations.h"
-#include "native_client/src/include/nacl_macros.h"
-#include "native_client/src/include/portability.h"
-#include "native_client/src/trusted/validator/ncvalidate.h"
-
-
-EXTERN_C_BEGIN
-
-/* List of features supported by ARM CPUs. */
-typedef enum {
-#define NACL_ARM_CPU_FEATURE(name) NACL_CONCAT(NaClCPUFeatureArm_, name),
-#include "native_client/src/trusted/validator_arm/cpuid_arm_features.h"
-#undef NACL_ARM_CPU_FEATURE
- /* Leave the following as the last entry. */
- NaClCPUFeatureArm_Max
-} NaClCPUFeatureArmID;
-
-typedef struct cpu_feature_struct_arm {
- char data[NaClCPUFeatureArm_Max];
-} NaClCPUFeaturesArm;
-
-/*
- * Platform-independent NaClValidatorInterface functions.
- */
-void NaClSetAllCPUFeaturesArm(NaClCPUFeatures *features);
-void NaClGetCurrentCPUFeaturesArm(NaClCPUFeatures *features);
-int NaClFixCPUFeaturesArm(NaClCPUFeatures *features);
-
-/*
- * Platform-dependent getter/setter.
- */
-static INLINE int NaClGetCPUFeatureArm(const NaClCPUFeaturesArm *features,
- NaClCPUFeatureArmID id) {
- return features->data[id];
-}
-
-void NaClSetCPUFeatureArm(NaClCPUFeaturesArm *features, NaClCPUFeatureArmID id,
- int state);
-const char *NaClGetCPUFeatureArmName(NaClCPUFeatureArmID id);
-
-/*
- * Platform-independent functions which are only used in platform-dependent
- * code.
- */
-void NaClClearCPUFeaturesArm(NaClCPUFeaturesArm *features);
-void NaClCopyCPUFeaturesArm(NaClCPUFeaturesArm *target,
- const NaClCPUFeaturesArm *source);
-/*
- * TODO(jfb) The x86 CPU features also offers this function, which is
- * currently not used on ARM: NaClArchSupportedArm.
- */
-
-EXTERN_C_END
-
-#endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_CPUID_ARM_H */
« no previous file with comments | « src/trusted/validator_arm/build.scons ('k') | src/trusted/validator_arm/cpuid_arm.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698