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