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

Unified Diff: src/trusted/validator/x86/decoder/generator/long_mode.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/long_mode.c
diff --git a/src/trusted/validator/x86/decoder/generator/long_mode.c b/src/trusted/validator/x86/decoder/generator/long_mode.c
deleted file mode 100644
index e01d10cbab4df95afdc47fe5691335635581ad3d..0000000000000000000000000000000000000000
--- a/src/trusted/validator/x86/decoder/generator/long_mode.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2010 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 require CPUID bit 29 set, i.e. are
- * a long mode instruction.
- *
- * Extracted from table D-1 in AMD document 25494 - AMD64 Architecture
- * Programmer's Manual, Volume 3: General-Purpose and System Instructions.
- */
-
-#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/zero_extends.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 mnemonics that define long mode instructions.
- */
-static const NaClMnemonic kLongModeOp[] = {
- /* Note: Commented out instructions have not yet been implemented. */
- InstCdqe,
- InstCmpsq,
- InstCqo,
- InstIretq,
- InstLodsq,
- InstMovsq,
- InstMovsxd,
- InstPopfq,
- /* InstPrefetchw */
- InstPushfq,
- InstScasq,
- InstStosq,
- InstSwapgs
-};
-
-/* Add LongMode instruction flag if applicable. */
-void NaClAddLongModeIfApplicable(void) {
- if (NaClInInstructionSet(kLongModeOp, NACL_ARRAY_SIZE(kLongModeOp),
- NULL, 0)) {
- NaClAddIFlags(NACL_IFLAG(LongMode));
- }
-}

Powered by Google App Engine
This is Rietveld 408576698