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

Unified Diff: src/trusted/validator/x86/decoder/generator/lock_insts.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
Index: src/trusted/validator/x86/decoder/generator/lock_insts.c
diff --git a/src/trusted/validator/x86/decoder/generator/lock_insts.c b/src/trusted/validator/x86/decoder/generator/lock_insts.c
deleted file mode 100644
index b17967f77a41d625e3be9e18f6e56da6e643bd15..0000000000000000000000000000000000000000
--- a/src/trusted/validator/x86/decoder/generator/lock_insts.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (c) 2011 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.
- */
-
-/* Captures instructions that can be locked.
- *
- * Extracted from zection '1.2.5 Lock Prefix' in AMD Document 25494 - AMD64
- * Architecture Programmer's Manual, Volume 3: General-Purpose and System
- * Instructions.
- *
- * Note: This is used by the x86-64 validator to decide what operations can
- * be locked.
- */
-
-#ifndef NACL_TRUSTED_BUT_NOT_TCB
-#error("This file is not meant for use in the TCB")
-#endif
-
-#include "native_client/src/trusted/validator/x86/decoder/generator/lock_insts.h"
-
-#include "native_client/src/include/nacl_macros.h"
-#include "native_client/src/trusted/validator/x86/decoder/generator/ncdecode_forms.h"
-#include "native_client/src/trusted/validator/x86/decoder/generator/ncdecode_tablegen.h"
-
-/* List of instruction nmemonics that can be locked. */
-static const NaClMnemonic kLockableOp[] = {
- InstAdc,
- InstAdd,
- InstAnd,
- InstBtc,
- InstBtr,
- InstBts,
- InstCmpxchg,
- /* Note: The following two instructions are not implemented as separate
- * instructions from Cmpxchg, but are separated in the AMD manual.
- */
- InstCmpxchg8b,
- InstCmpxchg16b,
- InstDec,
- InstInc,
- InstNeg,
- InstNot,
- InstOr,
- InstSbb,
- InstSub,
- InstXadd,
- InstXchg,
- InstXor
-};
-
-void NaClLockableFlagIfApplicable(void) {
- if (NaClInInstructionSet(kLockableOp, NACL_ARRAY_SIZE(kLockableOp),
- NULL, 0)) {
- NaClAddIFlags(NACL_IFLAG(OpcodeLockable));
- }
-}
« no previous file with comments | « src/trusted/validator/x86/decoder/generator/lock_insts.h ('k') | src/trusted/validator/x86/decoder/generator/long_mode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698