- add third_party src.
[platform/framework/web/crosswalk.git] / src / native_client / src / trusted / validator / x86 / ncval_reg_sfi / ncval_decode_tables.c
1 /*
2  * Copyright (c) 2011 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6
7 #include "native_client/src/trusted/validator/x86/ncval_reg_sfi/ncval_decode_tables.h"
8
9 #include "native_client/src/trusted/validator/x86/decoder/ncopcode_desc.h"
10 #include "native_client/src/trusted/validator/x86/decoder/nc_decode_tables.h"
11
12 #if NACL_TARGET_SUBARCH == 64
13 # include "native_client/src/trusted/validator/x86/decoder/gen/ncval_reg_sfi_opcode_table_64.h"
14 #else
15 # include "native_client/src/trusted/validator/x86/decoder/gen/ncval_reg_sfi_opcode_table_32.h"
16 #endif
17
18 static const NaClDecodeTables kDecoderTables = {
19   g_Operands,
20   g_Opcodes + 0,
21   g_LookupTable + 0,
22   g_PrefixOpcode + 0,
23   g_Opcodes + 0,
24   kNaClPrefixTable,
25   g_OpcodeSeq
26 };
27
28 const struct NaClDecodeTables* kNaClValDecoderTables = &kDecoderTables;