| 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 "native_client/src/trusted/validator_mips/ncvalidate.h" | 7 #include "native_client/src/trusted/validator_mips/ncvalidate.h" |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 if (!success) return 2; | 110 if (!success) return 2; |
| 111 | 111 |
| 112 return 0; | 112 return 0; |
| 113 } | 113 } |
| 114 | 114 |
| 115 static NaClValidationStatus ApplyValidatorMips( | 115 static NaClValidationStatus ApplyValidatorMips( |
| 116 uintptr_t guest_addr, | 116 uintptr_t guest_addr, |
| 117 uint8_t *data, | 117 uint8_t *data, |
| 118 size_t size, | 118 size_t size, |
| 119 int stubout_mode, | 119 int stubout_mode, |
| 120 int pnacl_mode, |
| 120 int readonly_text, | 121 int readonly_text, |
| 121 const NaClCPUFeatures *cpu_features, | 122 const NaClCPUFeatures *cpu_features, |
| 122 const struct NaClValidationMetadata *metadata, | 123 const struct NaClValidationMetadata *metadata, |
| 123 struct NaClValidationCache *cache) { | 124 struct NaClValidationCache *cache) { |
| 125 UNREFERENCED_PARAMETER(pnacl_mode); |
| 124 void *query = NULL; | 126 void *query = NULL; |
| 125 const NaClCPUFeaturesMips *features = | 127 const NaClCPUFeaturesMips *features = |
| 126 (const NaClCPUFeaturesMips *) cpu_features; | 128 (const NaClCPUFeaturesMips *) cpu_features; |
| 127 NaClValidationStatus status = NaClValidationFailedNotImplemented; | 129 NaClValidationStatus status = NaClValidationFailedNotImplemented; |
| 128 | 130 |
| 129 /* Don't cache in stubout mode. */ | 131 /* Don't cache in stubout mode. */ |
| 130 if (stubout_mode) | 132 if (stubout_mode) |
| 131 cache = NULL; | 133 cache = NULL; |
| 132 | 134 |
| 133 /* If the validation caching interface is available, perform a query. */ | 135 /* If the validation caching interface is available, perform a query. */ |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 */ | 240 */ |
| 239 int NaClCopyInstruction(uint8_t *dst, uint8_t *src, uint8_t sz) { | 241 int NaClCopyInstruction(uint8_t *dst, uint8_t *src, uint8_t sz) { |
| 240 UNREFERENCED_PARAMETER(dst); | 242 UNREFERENCED_PARAMETER(dst); |
| 241 UNREFERENCED_PARAMETER(src); | 243 UNREFERENCED_PARAMETER(src); |
| 242 UNREFERENCED_PARAMETER(sz); | 244 UNREFERENCED_PARAMETER(sz); |
| 243 | 245 |
| 244 return 0; | 246 return 0; |
| 245 } | 247 } |
| 246 | 248 |
| 247 EXTERN_C_END | 249 EXTERN_C_END |
| OLD | NEW |