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

Unified Diff: src/trusted/validator/x86/32/ncvalidate_verbose.c

Issue 625923004: Delete old x86 validator. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: rebase master Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/validator/x86/32/ncvalidate.c ('k') | src/trusted/validator/x86/32/validator_x86_32.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator/x86/32/ncvalidate_verbose.c
diff --git a/src/trusted/validator/x86/32/ncvalidate_verbose.c b/src/trusted/validator/x86/32/ncvalidate_verbose.c
deleted file mode 100644
index e4aa5a69ace84b59545a9006fd550375b2f45e22..0000000000000000000000000000000000000000
--- a/src/trusted/validator/x86/32/ncvalidate_verbose.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (c) 2012 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/* Implement the ApplyValidatorVerbosely API for the x86-32 architecture. */
-
-#include "native_client/src/trusted/validator/ncvalidate.h"
-
-#include "native_client/src/shared/platform/nacl_log.h"
-#include "native_client/src/trusted/cpu_features/arch/x86/cpu_x86.h"
-#include "native_client/src/trusted/validator/x86/ncval_seg_sfi/ncvalidate_detailed.h"
-#include "native_client/src/trusted/validator/x86/ncval_seg_sfi/ncdecode_verbose.h"
-#include "native_client/src/trusted/validator/x86/ncval_seg_sfi/ncvalidate.h"
-#include <assert.h>
-
-/* Be sure the correct compile flags are defined for this. */
-#if NACL_ARCH(NACL_TARGET_ARCH) != NACL_x86
-# error("Can't compile, target is for x86-32")
-#else
-# if NACL_TARGET_SUBARCH != 32
-# error("Can't compile, target is for x86-32")
-# endif
-#endif
-
-static NaClValidationStatus NCApplyValidatorVerbosely_x86_32(
- uintptr_t guest_addr,
- uint8_t *data,
- size_t size,
- const NaClCPUFeaturesX86 *cpu_features) {
- int validator_result = 0;
- struct NCValidatorState *vstate;
-
- vstate = NCValidateInitDetailed(guest_addr, size, cpu_features);
- if (vstate == NULL) return NaClValidationFailedOutOfMemory;
- NCValidateSetNumDiagnostics(vstate, -1); /* Reports all errors. */
- NCValidateSetErrorReporter(vstate, &kNCVerboseErrorReporter);
- NCValidateSegment(data, guest_addr, size, vstate);
- validator_result = NCValidateFinish(vstate);
- NCValidateFreeState(&vstate);
- return (validator_result == 0)
- ? NaClValidationSucceeded : NaClValidationFailed;
-}
-
-NaClValidationStatus NACL_SUBARCH_NAME(ApplyValidatorVerbosely, x86, 32)
- (uintptr_t guest_addr,
- uint8_t *data,
- size_t size,
- const NaClCPUFeatures *f) {
- /* TODO(jfb) Use a safe cast here. */
- const NaClCPUFeaturesX86 *cpu_features = (NaClCPUFeaturesX86 *) f;
- if (!NaClArchSupportedX86(cpu_features))
- return NaClValidationFailedCpuNotSupported;
-
- return NCApplyValidatorVerbosely_x86_32(
- guest_addr, data, size, cpu_features);
-}
« no previous file with comments | « src/trusted/validator/x86/32/ncvalidate.c ('k') | src/trusted/validator/x86/32/validator_x86_32.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698