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

Side by Side Diff: src/trusted/validator_arm/ncvalidate.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/ncval.cc ('k') | src/trusted/validator_arm/validator.h » ('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 <climits> 7 #include <climits>
8 #include <limits> 8 #include <limits>
9 #include <vector> 9 #include <vector>
10 10
11 #include "native_client/src/include/nacl_string.h" 11 #include "native_client/src/include/nacl_string.h"
12 #include "native_client/src/include/portability.h" 12 #include "native_client/src/include/portability.h"
13 #include "native_client/src/shared/platform/nacl_check.h" 13 #include "native_client/src/shared/platform/nacl_check.h"
14 #include "native_client/src/shared/platform/nacl_log.h" 14 #include "native_client/src/shared/platform/nacl_log.h"
15 #include "native_client/src/trusted/service_runtime/nacl_config.h" 15 #include "native_client/src/trusted/service_runtime/nacl_config.h"
16 #include "native_client/src/trusted/validator_arm/cpuid_arm.h" 16 #include "native_client/src/trusted/cpu_features/arch/arm/cpu_arm.h"
17 #include "native_client/src/trusted/validator_arm/model.h" 17 #include "native_client/src/trusted/validator_arm/model.h"
18 #include "native_client/src/trusted/validator_arm/validator.h" 18 #include "native_client/src/trusted/validator_arm/validator.h"
19 #include "native_client/src/trusted/validator/ncvalidate.h" 19 #include "native_client/src/trusted/validator/ncvalidate.h"
20 20
21 using nacl_arm_val::SfiValidator; 21 using nacl_arm_val::SfiValidator;
22 using nacl_arm_val::CodeSegment; 22 using nacl_arm_val::CodeSegment;
23 using nacl_arm_dec::Register; 23 using nacl_arm_dec::Register;
24 using nacl_arm_dec::RegisterList; 24 using nacl_arm_dec::RegisterList;
25 using std::vector; 25 using std::vector;
26 26
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // so is their mix (single instruction update is atomic). 220 // so is their mix (single instruction update is atomic).
221 // We just have to make sure that unintended fallthrough doesn't 221 // We just have to make sure that unintended fallthrough doesn't
222 // happen, and we don't change position of guard instructions. 222 // happen, and we don't change position of guard instructions.
223 // Problem is that code is mapped for execution at different address 223 // Problem is that code is mapped for execution at different address
224 // that one we use here, and ARM usually use virtually indexed caches, 224 // that one we use here, and ARM usually use virtually indexed caches,
225 // so we couldn't invalidate correctly anyway. 225 // so we couldn't invalidate correctly anyway.
226 return 0; 226 return 0;
227 } 227 }
228 228
229 EXTERN_C_END 229 EXTERN_C_END
OLDNEW
« no previous file with comments | « src/trusted/validator_arm/ncval.cc ('k') | src/trusted/validator_arm/validator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698