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

Side by Side Diff: src/trusted/validator/x86/ncval_seg_sfi/ncvalidate.h

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
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 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_SEG_SFI_NCVALIDATE_H__ 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_SEG_SFI_NCVALIDATE_H__
8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_SEG_SFI_NCVALIDATE_H__ 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_SEG_SFI_NCVALIDATE_H__
9 9
10 #include <stdio.h> 10 #include <stdio.h>
11 #include "native_client/src/trusted/validator/x86/nacl_cpuid.h" 11 #include "native_client/src/trusted/cpu_features/arch/x86/cpu_x86.h"
12 #include "native_client/src/trusted/validator/types_memory_model.h" 12 #include "native_client/src/trusted/validator/types_memory_model.h"
13 13
14 /* 14 /*
15 * ncvalidate.h: Validator for the segment-based sandbox. 15 * ncvalidate.h: Validator for the segment-based sandbox.
16 * 16 *
17 * This is the primary library interface to the validator for the 17 * This is the primary library interface to the validator for the
18 * segment-based sandbox. This version should be used when performance 18 * segment-based sandbox. This version should be used when performance
19 * is important. See ncvalidate_detailed.h for a secondary API which 19 * is important. See ncvalidate_detailed.h for a secondary API which
20 * provides more details when reporting errors. 20 * provides more details when reporting errors.
21 * 21 *
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 * If zero, no messages are printed. 131 * If zero, no messages are printed.
132 * If >0, only that many diagnostic errors are printed. 132 * If >0, only that many diagnostic errors are printed.
133 * If negative, all validator diagnostics are printed. 133 * If negative, all validator diagnostics are printed.
134 */ 134 */
135 void NCValidatorSetMaxDiagnostics(int new_value); 135 void NCValidatorSetMaxDiagnostics(int new_value);
136 136
137 /* Returns 1 if any code has been overwritten with halts. */ 137 /* Returns 1 if any code has been overwritten with halts. */
138 int NCValidatorDidStubOut(struct NCValidatorState *vstate); 138 int NCValidatorDidStubOut(struct NCValidatorState *vstate);
139 139
140 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_SEG_SFI_NCVALIDATE_H__ */ 140 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_SEG_SFI_NCVALIDATE_H__ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698