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 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_VALIDATOR_H | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_VALIDATOR_H |
8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_VALIDATOR_H | 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_VALIDATOR_H |
9 | 9 |
10 /* | 10 /* |
11 * The SFI validator, and some utility classes it uses. | 11 * The SFI validator, and some utility classes it uses. |
12 */ | 12 */ |
13 | 13 |
14 #include <limits> | 14 #include <limits> |
15 #include <stdlib.h> | 15 #include <stdlib.h> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "native_client/src/include/nacl_string.h" | 18 #include "native_client/src/include/nacl_string.h" |
19 #include "native_client/src/include/portability.h" | 19 #include "native_client/src/include/portability.h" |
20 #include "native_client/src/shared/platform/nacl_check.h" | 20 #include "native_client/src/shared/platform/nacl_check.h" |
21 #include "native_client/src/trusted/validator/ncvalidate.h" | 21 #include "native_client/src/trusted/validator/ncvalidate.h" |
22 #include "native_client/src/trusted/validator_arm/address_set.h" | 22 #include "native_client/src/trusted/validator_arm/address_set.h" |
23 #include "native_client/src/trusted/validator_arm/cpuid_arm.h" | 23 #include "native_client/src/trusted/cpu_features/arch/arm/cpu_arm.h" |
24 #include "native_client/src/trusted/validator_arm/gen/arm32_decode.h" | 24 #include "native_client/src/trusted/validator_arm/gen/arm32_decode.h" |
25 #include "native_client/src/trusted/validator_arm/inst_classes.h" | 25 #include "native_client/src/trusted/validator_arm/inst_classes.h" |
26 #include "native_client/src/trusted/validator_arm/model.h" | 26 #include "native_client/src/trusted/validator_arm/model.h" |
27 | 27 |
28 namespace nacl_arm_val { | 28 namespace nacl_arm_val { |
29 | 29 |
30 // Forward declarations of classes used by-reference in the validator, and | 30 // Forward declarations of classes used by-reference in the validator, and |
31 // defined at the end of this file. | 31 // defined at the end of this file. |
32 class CodeSegment; | 32 class CodeSegment; |
33 class DecodedInstruction; | 33 class DecodedInstruction; |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 // Used so that we can blindly copy/compare user data. | 648 // Used so that we can blindly copy/compare user data. |
649 static size_t UserDataSize(ValidatorProblemMethod method); | 649 static size_t UserDataSize(ValidatorProblemMethod method); |
650 | 650 |
651 private: | 651 private: |
652 NACL_DISALLOW_COPY_AND_ASSIGN(ProblemSink); | 652 NACL_DISALLOW_COPY_AND_ASSIGN(ProblemSink); |
653 }; | 653 }; |
654 | 654 |
655 } // namespace nacl_arm_val | 655 } // namespace nacl_arm_val |
656 | 656 |
657 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_VALIDATOR_H | 657 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_VALIDATOR_H |
OLD | NEW |