OLD | NEW |
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 Loading... |
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 |
OLD | NEW |