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.
8 * Defines types used in decoder tables.
11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NC_DECODE_TABLES_TYPES_H__
12 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NC_DECODE_TABLES_TYPES_H__
14 #include "native_client/src/include/portability.h"
18 /* Defines the maximum allowable bytes per x86 instruction. */
19 #define NACL_MAX_BYTES_PER_X86_INSTRUCTION 15
21 /* Offset into generated table of operands, defining where the operands
24 typedef uint16_t NaClOperandArrayOffset;
26 /* Offset into generated table of opcodes, defining where the instruction
29 typedef uint16_t NaClOpcodeArrayOffset;
31 /* Special value used to denote NULL for an NaClOpcodeArrayOffset value. */
32 #define NACL_OPCODE_NULL_OFFSET 0xFFFF
34 /* Offset into generated table of prefix opcode lookups. */
35 typedef uint16_t NaClPrefixOpcodeArrayOffset;
39 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NC_DECODE_TABLES_TYPES_H__ */