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

Unified Diff: src/trusted/validator_mips/cpuid_mips.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_mips/build.scons ('k') | src/trusted/validator_mips/cpuid_mips.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator_mips/cpuid_mips.h
diff --git a/src/trusted/validator_mips/cpuid_mips.h b/src/trusted/validator_mips/cpuid_mips.h
deleted file mode 100644
index 3bf7273436b2d16ef472b2961859e84df504de02..0000000000000000000000000000000000000000
--- a/src/trusted/validator_mips/cpuid_mips.h
+++ /dev/null
@@ -1,62 +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_MIPS_CPUID_MIPS_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_CPUID_MIPS_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 MIPS CPUs. */
-typedef enum {
-#define NACL_MIPS_CPU_FEATURE(name) NACL_CONCAT(NaClCPUFeatureMips_, name),
-#include "native_client/src/trusted/validator_mips/cpuid_mips_features.h"
-#undef NACL_MIPS_CPU_FEATURE
- /* Leave the following as the last entry. */
- NaClCPUFeatureMips_Max
-} NaClCPUFeatureMipsID;
-
-typedef struct cpu_feature_struct_mips {
- char data[NaClCPUFeatureMips_Max];
-} NaClCPUFeaturesMips;
-
-/*
- * Platform-independent NaClValidatorInterface functions.
- */
-void NaClSetAllCPUFeaturesMips(NaClCPUFeatures *features);
-void NaClGetCurrentCPUFeaturesMips(NaClCPUFeatures *features);
-int NaClFixCPUFeaturesMips(NaClCPUFeatures *features);
-
-/*
- * Platform-dependent getter/setter.
- */
-static INLINE int NaClGetCPUFeatureMips(const NaClCPUFeaturesMips *features,
- NaClCPUFeatureMipsID id) {
- return features->data[id];
-}
-
-void NaClSetCPUFeatureMips(NaClCPUFeaturesMips *features,
- NaClCPUFeatureMipsID id, int state);
-const char *NaClGetCPUFeatureMipsName(NaClCPUFeatureMipsID id);
-
-/*
- * Platform-independent functions which are only used in platform-dependent
- * code.
- */
-void NaClClearCPUFeaturesMips(NaClCPUFeaturesMips *features);
-/*
- * TODO(jfb) The x86 CPU features also offers these functions, which are
- * currently notused on MIPS: NaClCopyCPUFeaturesMips, NaClArchSupportedMips.
- */
-
-EXTERN_C_END
-
-#endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_CPUID_MIPS_H_
« no previous file with comments | « src/trusted/validator_mips/build.scons ('k') | src/trusted/validator_mips/cpuid_mips.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698