Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / native_client / src / trusted / validator_x86 / ncdis_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/ncdis_decode_tables.h"
8
9 #include "native_client/src/trusted/validator/x86/decoder/nc_decode_tables.h"
10 #include "native_client/src/trusted/validator/x86/decoder/ncopcode_desc.h"
11 #if NACL_TARGET_SUBARCH == 64
12 # include "native_client/src/trusted/validator_x86/gen/nc_opcode_table_64.h"
13 #else
14 # include "native_client/src/trusted/validator_x86/gen/nc_opcode_table_32.h"
15 #endif
16
17 static const NaClDecodeTables kDecoderTables = {
18   g_Operands,
19   g_Opcodes + 0,
20   g_LookupTable + 0,
21   g_PrefixOpcode + 0,
22   g_Opcodes + 0,
23   kNaClPrefixTable,
24   g_OpcodeSeq
25 };
26
27 const struct NaClDecodeTables* kNaClDecoderTables = &kDecoderTables;