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

Side by Side Diff: src/trusted/validator_arm/ncval.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/trusted/validator_arm/cpuid_arm_features.h ('k') | src/trusted/validator_arm/ncvalidate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <assert.h> 7 #include <assert.h>
8 #include <errno.h> 8 #include <errno.h>
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <string.h> 10 #include <string.h>
11 11
12 #include <algorithm> 12 #include <algorithm>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "native_client/src/include/nacl_string.h" 16 #include "native_client/src/include/nacl_string.h"
17 #include "native_client/src/include/portability.h" 17 #include "native_client/src/include/portability.h"
18 #include "native_client/src/trusted/validator/ncfileutil.h" 18 #include "native_client/src/trusted/validator/ncfileutil.h"
19 #include "native_client/src/trusted/validator_arm/cpuid_arm.h" 19 #include "native_client/src/trusted/cpu_features/arch/arm/cpu_arm.h"
20 #include "native_client/src/trusted/validator_arm/model.h" 20 #include "native_client/src/trusted/validator_arm/model.h"
21 #include "native_client/src/trusted/validator_arm/problem_reporter.h" 21 #include "native_client/src/trusted/validator_arm/problem_reporter.h"
22 #include "native_client/src/trusted/validator_arm/validator.h" 22 #include "native_client/src/trusted/validator_arm/validator.h"
23 23
24 using nacl_arm_val::SfiValidator; 24 using nacl_arm_val::SfiValidator;
25 using nacl_arm_val::CodeSegment; 25 using nacl_arm_val::CodeSegment;
26 using nacl_arm_val::ProblemReporter; 26 using nacl_arm_val::ProblemReporter;
27 using nacl_arm_val::ValidatorProblem; 27 using nacl_arm_val::ValidatorProblem;
28 using nacl_arm_val::kValidatorProblemSize; 28 using nacl_arm_val::kValidatorProblemSize;
29 using nacl_arm_dec::MAY_BE_SAFE; 29 using nacl_arm_dec::MAY_BE_SAFE;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 printf("Valid.\n"); 168 printf("Valid.\n");
169 else 169 else
170 printf("Invalid.\n"); 170 printf("Invalid.\n");
171 } 171 }
172 172
173 if (ncf) 173 if (ncf)
174 nc_freefile(ncf); 174 nc_freefile(ncf);
175 175
176 return exit_code; 176 return exit_code;
177 } 177 }
OLDNEW
« no previous file with comments | « src/trusted/validator_arm/cpuid_arm_features.h ('k') | src/trusted/validator_arm/ncvalidate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698