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

Unified Diff: src/trusted/cpu_features/arch/arm/cpu_arm.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/cpu_features/arch/arm/cpu_arm.h ('k') | src/trusted/cpu_features/arch/arm/cpu_arm_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/cpu_features/arch/arm/cpu_arm.c
diff --git a/src/trusted/validator_arm/cpuid_arm.c b/src/trusted/cpu_features/arch/arm/cpu_arm.c
similarity index 92%
rename from src/trusted/validator_arm/cpuid_arm.c
rename to src/trusted/cpu_features/arch/arm/cpu_arm.c
index dc98828bd1f874978cf40b15510067475a2e4c68..094c624c6772d890954176aaa9481020a5f4cd88 100644
--- a/src/trusted/validator_arm/cpuid_arm.c
+++ b/src/trusted/cpu_features/arch/arm/cpu_arm.c
@@ -7,13 +7,13 @@
#include <string.h>
#include "native_client/src/shared/platform/nacl_log.h"
-#include "native_client/src/trusted/validator_arm/cpuid_arm.h"
+#include "native_client/src/trusted/cpu_features/arch/arm/cpu_arm.h"
void NaClSetAllCPUFeaturesArm(NaClCPUFeatures *f) {
/* TODO(jfb) Use a safe cast in this interface. */
NaClCPUFeaturesArm *features = (NaClCPUFeaturesArm *) f;
- /* Pedantic: avoid using memset, as in x86's nacl_cpuid.c. */
+ /* Pedantic: avoid using memset, as in x86's cpu_x86.c. */
int id;
/* Ensure any padding is zeroed. */
NaClClearCPUFeaturesArm(features);
@@ -70,7 +70,7 @@ void NaClSetCPUFeatureArm(NaClCPUFeaturesArm *f, NaClCPUFeatureArmID id,
const char *NaClGetCPUFeatureArmName(NaClCPUFeatureArmID id) {
static const char *kFeatureArmNames[NaClCPUFeatureArm_Max] = {
# define NACL_ARM_CPU_FEATURE(name) NACL_TO_STRING(name),
-# include "native_client/src/trusted/validator_arm/cpuid_arm_features.h"
+# include "native_client/src/trusted/cpu_features/arch/arm/cpu_arm_features.h"
# undef NACL_ARM_CPU_FEATURE
};
return ((unsigned)id < NaClCPUFeatureArm_Max) ?
« no previous file with comments | « src/trusted/cpu_features/arch/arm/cpu_arm.h ('k') | src/trusted/cpu_features/arch/arm/cpu_arm_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698