2003-05-15 20:41:17 +04:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
2011-02-25 00:54:04 +03:00
|
|
|
// $Id$
|
2005-03-19 23:44:01 +03:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
2003-05-15 20:41:17 +04:00
|
|
|
//
|
2012-01-12 00:21:29 +04:00
|
|
|
// Copyright (c) 2005-2012 Stanislav Shwartsman
|
2007-03-24 00:27:13 +03:00
|
|
|
// Written by Stanislav Shwartsman [sshwarts at sourceforge net]
|
2003-05-15 20:41:17 +04:00
|
|
|
//
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
2009-01-16 21:18:59 +03:00
|
|
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA B 02110-1301 USA
|
2005-03-19 23:44:01 +03:00
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2003-05-15 20:41:17 +04:00
|
|
|
#ifndef BX_COMMON_FETCHDECODE_TABLES_H
|
|
|
|
#define BX_COMMON_FETCHDECODE_TABLES_H
|
|
|
|
|
2007-10-12 02:44:17 +04:00
|
|
|
typedef struct BxOpcodeInfo_t {
|
2008-04-05 02:39:45 +04:00
|
|
|
Bit16u Attr;
|
|
|
|
Bit16u IA;
|
2007-10-12 02:44:17 +04:00
|
|
|
const BxOpcodeInfo_t *AnotherArray;
|
|
|
|
} BxOpcodeInfo_t;
|
|
|
|
|
2003-05-15 20:41:17 +04:00
|
|
|
//
|
2007-10-12 02:44:17 +04:00
|
|
|
// This file contains common IA-32/X86-64 opcode tables, like FPU opcode
|
2004-11-26 23:21:28 +03:00
|
|
|
// table, 3DNow! opcode table or SSE opcode groups (choose the opcode
|
|
|
|
// according to instruction prefixes)
|
2003-05-15 20:41:17 +04:00
|
|
|
//
|
|
|
|
|
2008-03-03 18:16:46 +03:00
|
|
|
BX_CPP_INLINE Bit16u FetchWORD(const Bit8u *iptr)
|
2003-08-15 17:08:24 +04:00
|
|
|
{
|
|
|
|
Bit16u data;
|
|
|
|
ReadHostWordFromLittleEndian(iptr, data);
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
|
2008-03-03 18:16:46 +03:00
|
|
|
BX_CPP_INLINE Bit32u FetchDWORD(const Bit8u *iptr)
|
2003-08-15 17:08:24 +04:00
|
|
|
{
|
|
|
|
Bit32u data;
|
|
|
|
ReadHostDWordFromLittleEndian(iptr, data);
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
|
2004-11-26 23:21:28 +03:00
|
|
|
#if BX_SUPPORT_X86_64
|
2008-03-03 18:16:46 +03:00
|
|
|
BX_CPP_INLINE Bit64u FetchQWORD(const Bit8u *iptr)
|
2003-08-15 17:08:24 +04:00
|
|
|
{
|
|
|
|
Bit64u data;
|
2003-08-15 19:17:56 +04:00
|
|
|
ReadHostQWordFromLittleEndian(iptr, data);
|
2003-08-15 17:08:24 +04:00
|
|
|
return data;
|
|
|
|
}
|
2004-11-26 23:21:28 +03:00
|
|
|
#endif
|
2003-08-15 17:08:24 +04:00
|
|
|
|
2012-08-05 17:52:40 +04:00
|
|
|
#define BX_PREPARE_SSE (0x80)
|
|
|
|
#define BX_PREPARE_AVX (0x40)
|
2010-12-23 00:16:02 +03:00
|
|
|
|
2008-07-13 13:59:59 +04:00
|
|
|
struct bxIAOpcodeTable {
|
2008-08-29 23:23:03 +04:00
|
|
|
BxExecutePtr_tR execute1;
|
2008-08-10 01:05:07 +04:00
|
|
|
BxExecutePtr_tR execute2;
|
2012-08-05 17:52:40 +04:00
|
|
|
Bit8u src[4];
|
2008-07-13 13:59:59 +04:00
|
|
|
};
|
|
|
|
|
2012-08-05 17:52:40 +04:00
|
|
|
enum {
|
|
|
|
BX_SRC_NONE = 0,
|
|
|
|
BX_SRC_EAX,
|
|
|
|
BX_SRC_NNN,
|
|
|
|
BX_SRC_RM,
|
|
|
|
BX_SRC_MEM_NO_VVV,
|
|
|
|
BX_SRC_VVV,
|
|
|
|
BX_SRC_VIB,
|
|
|
|
BX_SRC_VIB_RM, // RM when VEX.W = 1, VIB otherwise
|
|
|
|
BX_SRC_RM_VIB, // RM when VEX.W = 0, VIB otherwise
|
|
|
|
BX_SRC_RM_VVV, // RM when VEX.W = 1, VVV otherwise
|
|
|
|
BX_SRC_VVV_RM // RM when VEX.W = 0, VVV otherwise
|
|
|
|
};
|
|
|
|
|
|
|
|
#define BX_SRC_XMM0 (BX_SRC_EAX)
|
|
|
|
|
2003-05-15 20:41:17 +04:00
|
|
|
//
|
2004-11-26 23:21:28 +03:00
|
|
|
// Common FetchDecode Opcode Tables
|
2003-05-15 20:41:17 +04:00
|
|
|
//
|
|
|
|
|
2010-02-08 13:39:30 +03:00
|
|
|
#include "fetchdecode_x87.h"
|
|
|
|
#include "fetchdecode_sse.h"
|
2011-03-19 23:09:34 +03:00
|
|
|
#include "fetchdecode_avx.h"
|
2011-10-20 00:54:04 +04:00
|
|
|
#include "fetchdecode_xop.h"
|
2006-04-06 22:30:05 +04:00
|
|
|
|
2007-11-16 21:34:14 +03:00
|
|
|
/* ************************************************************************ */
|
|
|
|
/* Opcode Groups */
|
|
|
|
|
|
|
|
/* ******* */
|
|
|
|
/* Group 1 */
|
|
|
|
/* ******* */
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG1EbIb[8] = {
|
2007-11-16 21:34:14 +03:00
|
|
|
// attributes defined in main area
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 0 */ { BxLockable, BX_IA_ADD_EbIb },
|
|
|
|
/* 1 */ { BxLockable, BX_IA_OR_EbIb },
|
|
|
|
/* 2 */ { BxLockable, BX_IA_ADC_EbIb },
|
|
|
|
/* 3 */ { BxLockable, BX_IA_SBB_EbIb },
|
|
|
|
/* 4 */ { BxLockable, BX_IA_AND_EbIb },
|
|
|
|
/* 5 */ { BxLockable, BX_IA_SUB_EbIb },
|
|
|
|
/* 6 */ { BxLockable, BX_IA_XOR_EbIb },
|
|
|
|
/* 7 */ { 0, BX_IA_CMP_EbIb }
|
2008-02-03 00:46:54 +03:00
|
|
|
};
|
2007-11-17 21:08:46 +03:00
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG1Ew[8] = {
|
2007-11-17 21:08:46 +03:00
|
|
|
// attributes defined in main area
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 0 */ { BxLockable, BX_IA_ADD_EwIw },
|
|
|
|
/* 1 */ { BxLockable, BX_IA_OR_EwIw },
|
|
|
|
/* 2 */ { BxLockable, BX_IA_ADC_EwIw },
|
|
|
|
/* 3 */ { BxLockable, BX_IA_SBB_EwIw },
|
|
|
|
/* 4 */ { BxLockable, BX_IA_AND_EwIw },
|
|
|
|
/* 5 */ { BxLockable, BX_IA_SUB_EwIw },
|
|
|
|
/* 6 */ { BxLockable, BX_IA_XOR_EwIw },
|
|
|
|
/* 7 */ { 0, BX_IA_CMP_EwIw }
|
2008-02-03 00:46:54 +03:00
|
|
|
};
|
2007-11-16 21:34:14 +03:00
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG1Ed[8] = {
|
2007-11-16 21:34:14 +03:00
|
|
|
// attributes defined in main area
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 0 */ { BxLockable, BX_IA_ADD_EdId },
|
|
|
|
/* 1 */ { BxLockable, BX_IA_OR_EdId },
|
|
|
|
/* 2 */ { BxLockable, BX_IA_ADC_EdId },
|
|
|
|
/* 3 */ { BxLockable, BX_IA_SBB_EdId },
|
|
|
|
/* 4 */ { BxLockable, BX_IA_AND_EdId },
|
|
|
|
/* 5 */ { BxLockable, BX_IA_SUB_EdId },
|
|
|
|
/* 6 */ { BxLockable, BX_IA_XOR_EdId },
|
|
|
|
/* 7 */ { 0, BX_IA_CMP_EdId }
|
2008-02-03 00:46:54 +03:00
|
|
|
};
|
2007-11-16 21:34:14 +03:00
|
|
|
|
|
|
|
#if BX_SUPPORT_X86_64
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfo64G1Eq[8] = {
|
2007-11-16 21:34:14 +03:00
|
|
|
// attributes defined in main area
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 0 */ { BxLockable, BX_IA_ADD_EqId },
|
|
|
|
/* 1 */ { BxLockable, BX_IA_OR_EqId },
|
|
|
|
/* 2 */ { BxLockable, BX_IA_ADC_EqId },
|
|
|
|
/* 3 */ { BxLockable, BX_IA_SBB_EqId },
|
|
|
|
/* 4 */ { BxLockable, BX_IA_AND_EqId },
|
|
|
|
/* 5 */ { BxLockable, BX_IA_SUB_EqId },
|
|
|
|
/* 6 */ { BxLockable, BX_IA_XOR_EqId },
|
|
|
|
/* 7 */ { 0, BX_IA_CMP_EqId }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2008-05-01 01:32:33 +04:00
|
|
|
/* ******** */
|
|
|
|
/* Group 1A */
|
|
|
|
/* ******** */
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG1AEw[8] = {
|
|
|
|
/* 0 */ { 0, BX_IA_POP_Ew },
|
2008-05-01 01:32:33 +04:00
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 4 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
|
|
|
};
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG1AEd[8] = {
|
|
|
|
/* 0 */ { 0, BX_IA_POP_Ed },
|
2008-05-01 01:32:33 +04:00
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 4 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
|
|
|
};
|
|
|
|
|
|
|
|
#if BX_SUPPORT_X86_64
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfo64G1AEq[8] = {
|
|
|
|
/* 0 */ { 0, BX_IA_POP_Eq },
|
2008-05-01 01:32:33 +04:00
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 4 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2007-11-16 21:34:14 +03:00
|
|
|
/* ******* */
|
|
|
|
/* Group 2 */
|
|
|
|
/* ******* */
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG2Eb[8] = {
|
|
|
|
/* 0 */ { 0, BX_IA_ROL_Eb },
|
|
|
|
/* 1 */ { 0, BX_IA_ROR_Eb },
|
|
|
|
/* 2 */ { 0, BX_IA_RCL_Eb },
|
|
|
|
/* 3 */ { 0, BX_IA_RCR_Eb },
|
|
|
|
/* 4 */ { 0, BX_IA_SHL_Eb },
|
|
|
|
/* 5 */ { 0, BX_IA_SHR_Eb },
|
|
|
|
/* 6 */ { 0, BX_IA_SHL_Eb },
|
|
|
|
/* 7 */ { 0, BX_IA_SAR_Eb }
|
2010-05-18 11:28:05 +04:00
|
|
|
};
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG2Ew[8] = {
|
|
|
|
/* 0 */ { 0, BX_IA_ROL_Ew },
|
|
|
|
/* 1 */ { 0, BX_IA_ROR_Ew },
|
|
|
|
/* 2 */ { 0, BX_IA_RCL_Ew },
|
|
|
|
/* 3 */ { 0, BX_IA_RCR_Ew },
|
|
|
|
/* 4 */ { 0, BX_IA_SHL_Ew },
|
|
|
|
/* 5 */ { 0, BX_IA_SHR_Ew },
|
|
|
|
/* 6 */ { 0, BX_IA_SHL_Ew },
|
|
|
|
/* 7 */ { 0, BX_IA_SAR_Ew }
|
2010-05-18 11:28:05 +04:00
|
|
|
};
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG2Ed[8] = {
|
|
|
|
/* 0 */ { 0, BX_IA_ROL_Ed },
|
|
|
|
/* 1 */ { 0, BX_IA_ROR_Ed },
|
|
|
|
/* 2 */ { 0, BX_IA_RCL_Ed },
|
|
|
|
/* 3 */ { 0, BX_IA_RCR_Ed },
|
|
|
|
/* 4 */ { 0, BX_IA_SHL_Ed },
|
|
|
|
/* 5 */ { 0, BX_IA_SHR_Ed },
|
|
|
|
/* 6 */ { 0, BX_IA_SHL_Ed },
|
|
|
|
/* 7 */ { 0, BX_IA_SAR_Ed }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#if BX_SUPPORT_X86_64
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfo64G2Eq[8] = {
|
|
|
|
/* 0 */ { 0, BX_IA_ROL_Eq },
|
|
|
|
/* 1 */ { 0, BX_IA_ROR_Eq },
|
|
|
|
/* 2 */ { 0, BX_IA_RCL_Eq },
|
|
|
|
/* 3 */ { 0, BX_IA_RCR_Eq },
|
|
|
|
/* 4 */ { 0, BX_IA_SHL_Eq },
|
|
|
|
/* 5 */ { 0, BX_IA_SHR_Eq },
|
|
|
|
/* 6 */ { 0, BX_IA_SHL_Eq },
|
|
|
|
/* 7 */ { 0, BX_IA_SAR_Eq }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2012-05-08 20:42:15 +04:00
|
|
|
/* ********* */
|
|
|
|
/* Group2 Ib */
|
|
|
|
/* ********* */
|
|
|
|
|
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG2EbIb[8] = {
|
|
|
|
// attributes defined in main area
|
|
|
|
/* 0 */ { 0, BX_IA_ROL_EbIb },
|
|
|
|
/* 1 */ { 0, BX_IA_ROR_EbIb },
|
|
|
|
/* 2 */ { 0, BX_IA_RCL_EbIb },
|
|
|
|
/* 3 */ { 0, BX_IA_RCR_EbIb },
|
|
|
|
/* 4 */ { 0, BX_IA_SHL_EbIb },
|
|
|
|
/* 5 */ { 0, BX_IA_SHR_EbIb },
|
|
|
|
/* 6 */ { 0, BX_IA_SHL_EbIb },
|
|
|
|
/* 7 */ { 0, BX_IA_SAR_EbIb }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG2EwIb[8] = {
|
|
|
|
// attributes defined in main area
|
|
|
|
/* 0 */ { 0, BX_IA_ROL_EwIb },
|
|
|
|
/* 1 */ { 0, BX_IA_ROR_EwIb },
|
|
|
|
/* 2 */ { 0, BX_IA_RCL_EwIb },
|
|
|
|
/* 3 */ { 0, BX_IA_RCR_EwIb },
|
|
|
|
/* 4 */ { 0, BX_IA_SHL_EwIb },
|
|
|
|
/* 5 */ { 0, BX_IA_SHR_EwIb },
|
|
|
|
/* 6 */ { 0, BX_IA_SHL_EwIb },
|
|
|
|
/* 7 */ { 0, BX_IA_SAR_EwIb }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG2EdIb[8] = {
|
|
|
|
// attributes defined in main area
|
|
|
|
/* 0 */ { 0, BX_IA_ROL_EdIb },
|
|
|
|
/* 1 */ { 0, BX_IA_ROR_EdIb },
|
|
|
|
/* 2 */ { 0, BX_IA_RCL_EdIb },
|
|
|
|
/* 3 */ { 0, BX_IA_RCR_EdIb },
|
|
|
|
/* 4 */ { 0, BX_IA_SHL_EdIb },
|
|
|
|
/* 5 */ { 0, BX_IA_SHR_EdIb },
|
|
|
|
/* 6 */ { 0, BX_IA_SHL_EdIb },
|
|
|
|
/* 7 */ { 0, BX_IA_SAR_EdIb }
|
|
|
|
};
|
|
|
|
|
|
|
|
#if BX_SUPPORT_X86_64
|
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfo64G2EqIb[8] = {
|
|
|
|
// attributes defined in main area
|
|
|
|
/* 0 */ { 0, BX_IA_ROL_EqIb },
|
|
|
|
/* 1 */ { 0, BX_IA_ROR_EqIb },
|
|
|
|
/* 2 */ { 0, BX_IA_RCL_EqIb },
|
|
|
|
/* 3 */ { 0, BX_IA_RCR_EqIb },
|
|
|
|
/* 4 */ { 0, BX_IA_SHL_EqIb },
|
|
|
|
/* 5 */ { 0, BX_IA_SHR_EqIb },
|
|
|
|
/* 6 */ { 0, BX_IA_SHL_EqIb },
|
|
|
|
/* 7 */ { 0, BX_IA_SAR_EqIb }
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2007-11-16 21:34:14 +03:00
|
|
|
/* ******* */
|
|
|
|
/* Group 3 */
|
|
|
|
/* ******* */
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG3Eb[8] = {
|
|
|
|
/* 0 */ { BxImmediate_Ib, BX_IA_TEST_EbIb },
|
|
|
|
/* 1 */ { BxImmediate_Ib, BX_IA_TEST_EbIb },
|
|
|
|
/* 2 */ { BxLockable, BX_IA_NOT_Eb },
|
|
|
|
/* 3 */ { BxLockable, BX_IA_NEG_Eb },
|
|
|
|
/* 4 */ { 0, BX_IA_MUL_ALEb },
|
|
|
|
/* 5 */ { 0, BX_IA_IMUL_ALEb },
|
|
|
|
/* 6 */ { 0, BX_IA_DIV_ALEb },
|
|
|
|
/* 7 */ { 0, BX_IA_IDIV_ALEb }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG3Ew[8] = {
|
|
|
|
/* 0 */ { BxImmediate_Iw, BX_IA_TEST_EwIw },
|
|
|
|
/* 1 */ { BxImmediate_Iw, BX_IA_TEST_EwIw },
|
|
|
|
/* 2 */ { BxLockable, BX_IA_NOT_Ew },
|
|
|
|
/* 3 */ { BxLockable, BX_IA_NEG_Ew },
|
|
|
|
/* 4 */ { 0, BX_IA_MUL_AXEw },
|
|
|
|
/* 5 */ { 0, BX_IA_IMUL_AXEw },
|
|
|
|
/* 6 */ { 0, BX_IA_DIV_AXEw },
|
|
|
|
/* 7 */ { 0, BX_IA_IDIV_AXEw }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG3Ed[8] = {
|
|
|
|
/* 0 */ { BxImmediate_Id, BX_IA_TEST_EdId },
|
|
|
|
/* 1 */ { BxImmediate_Id, BX_IA_TEST_EdId },
|
|
|
|
/* 2 */ { BxLockable, BX_IA_NOT_Ed },
|
|
|
|
/* 3 */ { BxLockable, BX_IA_NEG_Ed },
|
|
|
|
/* 4 */ { 0, BX_IA_MUL_EAXEd },
|
|
|
|
/* 5 */ { 0, BX_IA_IMUL_EAXEd },
|
|
|
|
/* 6 */ { 0, BX_IA_DIV_EAXEd },
|
|
|
|
/* 7 */ { 0, BX_IA_IDIV_EAXEd }
|
2008-02-03 00:46:54 +03:00
|
|
|
};
|
2007-11-16 21:34:14 +03:00
|
|
|
|
|
|
|
#if BX_SUPPORT_X86_64
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfo64G3Eq[8] = {
|
|
|
|
/* 0 */ { BxImmediate_Id, BX_IA_TEST_EqId },
|
|
|
|
/* 1 */ { BxImmediate_Id, BX_IA_TEST_EqId },
|
|
|
|
/* 2 */ { BxLockable, BX_IA_NOT_Eq },
|
|
|
|
/* 3 */ { BxLockable, BX_IA_NEG_Eq },
|
|
|
|
/* 4 */ { 0, BX_IA_MUL_RAXEq },
|
|
|
|
/* 5 */ { 0, BX_IA_IMUL_RAXEq },
|
|
|
|
/* 6 */ { 0, BX_IA_DIV_RAXEq },
|
|
|
|
/* 7 */ { 0, BX_IA_IDIV_RAXEq }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* ******* */
|
|
|
|
/* Group 4 */
|
|
|
|
/* ******* */
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG4[8] = {
|
|
|
|
/* 0 */ { BxLockable, BX_IA_INC_Eb },
|
|
|
|
/* 1 */ { BxLockable, BX_IA_DEC_Eb },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 4 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
2008-02-03 00:46:54 +03:00
|
|
|
};
|
2007-11-17 00:43:23 +03:00
|
|
|
|
2007-11-16 21:34:14 +03:00
|
|
|
/* ******* */
|
|
|
|
/* Group 5 */
|
|
|
|
/* ******* */
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG5w[8] = {
|
2007-11-16 21:34:14 +03:00
|
|
|
// attributes defined in main area
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 0 */ { BxLockable, BX_IA_INC_Ew },
|
|
|
|
/* 1 */ { BxLockable, BX_IA_DEC_Ew },
|
|
|
|
/* 2 */ { BxTraceEnd, BX_IA_CALL_Ew },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 3 */ { BxTraceEnd, BX_IA_CALL16_Ep },
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 4 */ { BxTraceEnd, BX_IA_JMP_Ew },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 5 */ { BxTraceEnd, BX_IA_JMP16_Ep },
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 6 */ { 0, BX_IA_PUSH_Ew },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
2008-02-03 00:46:54 +03:00
|
|
|
};
|
2007-11-17 15:44:10 +03:00
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG5d[8] = {
|
2007-11-17 15:44:10 +03:00
|
|
|
// attributes defined in main area
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 0 */ { BxLockable, BX_IA_INC_Ed },
|
|
|
|
/* 1 */ { BxLockable, BX_IA_DEC_Ed },
|
|
|
|
/* 2 */ { BxTraceEnd, BX_IA_CALL_Ed },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 3 */ { BxTraceEnd, BX_IA_CALL32_Ep },
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 4 */ { BxTraceEnd, BX_IA_JMP_Ed },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 5 */ { BxTraceEnd, BX_IA_JMP32_Ep },
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 6 */ { 0, BX_IA_PUSH_Ed },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
2008-02-03 00:46:54 +03:00
|
|
|
};
|
2007-11-16 21:34:14 +03:00
|
|
|
|
|
|
|
#if BX_SUPPORT_X86_64
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfo64G5w[8] = {
|
|
|
|
/* 0 */ { BxLockable, BX_IA_INC_Ew },
|
|
|
|
/* 1 */ { BxLockable, BX_IA_DEC_Ew },
|
|
|
|
/* 2 */ { BxTraceEnd, BX_IA_CALL_Eq },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 3 */ { BxTraceEnd, BX_IA_CALL16_Ep },
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 4 */ { BxTraceEnd, BX_IA_JMP_Eq },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 5 */ { BxTraceEnd, BX_IA_JMP16_Ep },
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 6 */ { 0, BX_IA_PUSH_Ew },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
2007-11-17 15:44:10 +03:00
|
|
|
};
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfo64G5d[8] = {
|
|
|
|
/* 0 */ { BxLockable, BX_IA_INC_Ed },
|
|
|
|
/* 1 */ { BxLockable, BX_IA_DEC_Ed },
|
|
|
|
/* 2 */ { BxTraceEnd, BX_IA_CALL_Eq },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 3 */ { BxTraceEnd, BX_IA_CALL32_Ep },
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 4 */ { BxTraceEnd, BX_IA_JMP_Eq },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 5 */ { BxTraceEnd, BX_IA_JMP32_Ep },
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 6 */ { 0, BX_IA_PUSH_Eq },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfo64G5q[8] = {
|
|
|
|
/* 0 */ { BxLockable, BX_IA_INC_Eq },
|
|
|
|
/* 1 */ { BxLockable, BX_IA_DEC_Eq },
|
|
|
|
/* 2 */ { BxTraceEnd, BX_IA_CALL_Eq },
|
2008-04-12 14:08:43 +04:00
|
|
|
/* 3 */ { BxTraceEnd, BX_IA_CALL64_Ep }, // TODO: 64-bit offset for Intel
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 4 */ { BxTraceEnd, BX_IA_JMP_Eq },
|
2008-04-12 14:08:43 +04:00
|
|
|
/* 5 */ { BxTraceEnd, BX_IA_JMP64_Ep }, // TODO: 64-bit offset for Intel
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 6 */ { 0, BX_IA_PUSH_Eq },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
2003-05-15 20:41:17 +04:00
|
|
|
#endif
|
2007-11-16 21:34:14 +03:00
|
|
|
|
|
|
|
/* ******* */
|
|
|
|
/* Group 6 */
|
|
|
|
/* ******* */
|
|
|
|
|
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG6[8] = {
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 0 */ { 0, BX_IA_SLDT_Ew },
|
|
|
|
/* 1 */ { 0, BX_IA_STR_Ew },
|
2010-02-15 17:04:48 +03:00
|
|
|
/* 2 */ { 0, BX_IA_LLDT_Ew },
|
|
|
|
/* 3 */ { 0, BX_IA_LTR_Ew },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 4 */ { 0, BX_IA_VERR_Ew },
|
|
|
|
/* 5 */ { 0, BX_IA_VERW_Ew },
|
|
|
|
/* 6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
2008-02-03 00:46:54 +03:00
|
|
|
};
|
2007-11-16 21:34:14 +03:00
|
|
|
|
|
|
|
/* ******* */
|
|
|
|
/* Group 7 */
|
|
|
|
/* ******* */
|
|
|
|
|
2011-01-21 19:07:51 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG7[64+8] = {
|
|
|
|
/* /m form */
|
|
|
|
/* 0 */ { 0, BX_IA_SGDT_Ms },
|
|
|
|
/* 1 */ { 0, BX_IA_SIDT_Ms },
|
|
|
|
/* 2 */ { 0, BX_IA_LGDT_Ms },
|
|
|
|
/* 3 */ { 0, BX_IA_LIDT_Ms },
|
|
|
|
/* 4 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 7 */ { BxTraceEnd, BX_IA_INVLPG },
|
|
|
|
|
|
|
|
/* /r form */
|
2009-01-10 19:01:55 +03:00
|
|
|
/* 0F 01 C0 */ { 0, BX_IA_ERROR },
|
2009-01-31 13:43:24 +03:00
|
|
|
/* 0F 01 C1 */ { BxTraceEnd | BxPrefixSSE, BX_IA_VMCALL, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 0F 01 C2 */ { BxTraceEnd | BxPrefixSSE, BX_IA_VMLAUNCH, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 0F 01 C3 */ { BxTraceEnd | BxPrefixSSE, BX_IA_VMRESUME, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 0F 01 C4 */ { BxTraceEnd | BxPrefixSSE, BX_IA_VMXOFF, BxOpcodeGroupSSE_ERR },
|
2009-01-10 19:01:55 +03:00
|
|
|
/* 0F 01 C5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 C6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 C7 */ { 0, BX_IA_ERROR },
|
2009-08-15 19:43:40 +04:00
|
|
|
/* 0F 01 C8 */ { BxPrefixSSE, BX_IA_MONITOR, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 0F 01 C9 */ { BxPrefixSSE | BxTraceEnd, BX_IA_MWAIT, BxOpcodeGroupSSE_ERR },
|
2012-09-10 19:22:26 +04:00
|
|
|
/* 0F 01 CA */ { 0, BX_IA_CLAC },
|
|
|
|
/* 0F 01 CB */ { 0, BX_IA_STAC },
|
2009-01-10 19:01:55 +03:00
|
|
|
/* 0F 01 CC */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 CD */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 CE */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 CF */ { 0, BX_IA_ERROR },
|
2009-08-15 19:43:40 +04:00
|
|
|
/* 0F 01 D0 */ { BxPrefixSSE, BX_IA_XGETBV, BxOpcodeGroupSSE_ERR },
|
2011-02-25 18:19:12 +03:00
|
|
|
/* 0F 01 D1 */ { BxPrefixSSE | BxTraceEnd, BX_IA_XSETBV, BxOpcodeGroupSSE_ERR },
|
2009-01-10 19:01:55 +03:00
|
|
|
/* 0F 01 D2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 D3 */ { 0, BX_IA_ERROR },
|
2011-11-05 11:31:51 +04:00
|
|
|
/* 0F 01 D4 */ { BxTraceEnd | BxPrefixSSE, BX_IA_VMFUNC, BxOpcodeGroupSSE_ERR },
|
2009-01-10 19:01:55 +03:00
|
|
|
/* 0F 01 D5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 D6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 D7 */ { 0, BX_IA_ERROR },
|
2011-12-25 23:35:29 +04:00
|
|
|
/* 0F 01 D8 */ { 0, BX_IA_VMRUN },
|
|
|
|
/* 0F 01 D9 */ { 0, BX_IA_VMMCALL },
|
|
|
|
/* 0F 01 DA */ { 0, BX_IA_VMLOAD },
|
|
|
|
/* 0F 01 DB */ { 0, BX_IA_VMSAVE },
|
|
|
|
/* 0F 01 DC */ { 0, BX_IA_STGI },
|
|
|
|
/* 0F 01 DD */ { 0, BX_IA_CLGI },
|
|
|
|
/* 0F 01 DE */ { 0, BX_IA_SKINIT },
|
|
|
|
/* 0F 01 DF */ { 0, BX_IA_INVLPGA },
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 0F 01 E0 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E1 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E2 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E3 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E4 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E5 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E6 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E7 */ { 0, BX_IA_SMSW_Ew },
|
2009-01-10 19:01:55 +03:00
|
|
|
/* 0F 01 E8 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 E9 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 EA */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 EB */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 EC */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 ED */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 EE */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 EF */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 F0 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F1 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F2 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F3 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F4 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F5 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F6 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F7 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
2010-04-07 18:49:18 +04:00
|
|
|
/* 0F 01 F8 */ { 0, BX_IA_ERROR },
|
2011-09-06 18:13:39 +04:00
|
|
|
/* 0F 01 F9 */ { BxTraceEnd, BX_IA_RDTSCP }, // end trace to avoid multiple TSC samples in one cycle
|
2009-01-10 19:01:55 +03:00
|
|
|
/* 0F 01 FA */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 FB */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 FC */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 FD */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 FE */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 FF */ { 0, BX_IA_ERROR }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#if BX_SUPPORT_X86_64
|
2011-01-21 19:07:51 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG7q[64+8] = {
|
|
|
|
/* /m form */
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 0 */ { 0, BX_IA_SGDT64_Ms },
|
|
|
|
/* 1 */ { 0, BX_IA_SIDT64_Ms },
|
2010-02-15 17:04:48 +03:00
|
|
|
/* 2 */ { 0, BX_IA_LGDT64_Ms },
|
|
|
|
/* 3 */ { 0, BX_IA_LIDT64_Ms },
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 4 */ { 0, BX_IA_SMSW_Ew },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
2011-01-21 19:07:51 +03:00
|
|
|
/* 7 */ { BxTraceEnd, BX_IA_INVLPG },
|
|
|
|
|
|
|
|
/* /r form */
|
|
|
|
/* 0F 01 C0 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 C1 */ { BxTraceEnd | BxPrefixSSE, BX_IA_VMCALL, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 0F 01 C2 */ { BxTraceEnd | BxPrefixSSE, BX_IA_VMLAUNCH, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 0F 01 C3 */ { BxTraceEnd | BxPrefixSSE, BX_IA_VMRESUME, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 0F 01 C4 */ { BxTraceEnd | BxPrefixSSE, BX_IA_VMXOFF, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 0F 01 C5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 C6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 C7 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 C8 */ { BxPrefixSSE, BX_IA_MONITOR, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 0F 01 C9 */ { BxPrefixSSE | BxTraceEnd, BX_IA_MWAIT, BxOpcodeGroupSSE_ERR },
|
2012-09-10 19:22:26 +04:00
|
|
|
/* 0F 01 CA */ { 0, BX_IA_CLAC },
|
|
|
|
/* 0F 01 CB */ { 0, BX_IA_STAC },
|
2011-01-21 19:07:51 +03:00
|
|
|
/* 0F 01 CC */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 CD */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 CE */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 CF */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 D0 */ { BxPrefixSSE, BX_IA_XGETBV, BxOpcodeGroupSSE_ERR },
|
2011-02-25 18:19:12 +03:00
|
|
|
/* 0F 01 D1 */ { BxPrefixSSE | BxTraceEnd, BX_IA_XSETBV, BxOpcodeGroupSSE_ERR },
|
2011-01-21 19:07:51 +03:00
|
|
|
/* 0F 01 D2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 D3 */ { 0, BX_IA_ERROR },
|
2011-11-05 11:31:51 +04:00
|
|
|
/* 0F 01 D4 */ { BxTraceEnd | BxPrefixSSE, BX_IA_VMFUNC, BxOpcodeGroupSSE_ERR },
|
2011-01-21 19:07:51 +03:00
|
|
|
/* 0F 01 D5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 D6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 D7 */ { 0, BX_IA_ERROR },
|
2011-12-25 23:35:29 +04:00
|
|
|
/* 0F 01 D8 */ { 0, BX_IA_VMRUN },
|
|
|
|
/* 0F 01 D9 */ { 0, BX_IA_VMMCALL },
|
|
|
|
/* 0F 01 DA */ { 0, BX_IA_VMLOAD },
|
|
|
|
/* 0F 01 DB */ { 0, BX_IA_VMSAVE },
|
|
|
|
/* 0F 01 DC */ { 0, BX_IA_STGI },
|
|
|
|
/* 0F 01 DD */ { 0, BX_IA_CLGI },
|
|
|
|
/* 0F 01 DE */ { 0, BX_IA_SKINIT },
|
|
|
|
/* 0F 01 DF */ { 0, BX_IA_INVLPGA },
|
2011-01-21 19:07:51 +03:00
|
|
|
/* 0F 01 E0 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E1 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E2 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E3 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E4 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E5 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E6 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E7 */ { 0, BX_IA_SMSW_Ew },
|
|
|
|
/* 0F 01 E8 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 E9 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 EA */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 EB */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 EC */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 ED */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 EE */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 EF */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 F0 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F1 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F2 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F3 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F4 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F5 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F6 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F7 */ { BxTraceEnd, BX_IA_LMSW_Ew },
|
|
|
|
/* 0F 01 F8 */ { 0, BX_IA_SWAPGS },
|
2011-09-06 18:13:39 +04:00
|
|
|
/* 0F 01 F9 */ { BxTraceEnd, BX_IA_RDTSCP }, // end trace to avoid multiple TSC samples in one cycle
|
2011-01-21 19:07:51 +03:00
|
|
|
/* 0F 01 FA */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 FB */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 FC */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 FD */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 FE */ { 0, BX_IA_ERROR },
|
|
|
|
/* 0F 01 FF */ { 0, BX_IA_ERROR }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* ******* */
|
|
|
|
/* Group 8 */
|
|
|
|
/* ******* */
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG8EwIb[8] = {
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 0 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 4 */ { BxImmediate_Ib, BX_IA_BT_EwIb },
|
|
|
|
/* 5 */ { BxImmediate_Ib | BxLockable, BX_IA_BTS_EwIb },
|
|
|
|
/* 6 */ { BxImmediate_Ib | BxLockable, BX_IA_BTR_EwIb },
|
|
|
|
/* 7 */ { BxImmediate_Ib | BxLockable, BX_IA_BTC_EwIb }
|
2008-02-03 00:46:54 +03:00
|
|
|
};
|
2007-11-25 23:22:10 +03:00
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG8EdIb[8] = {
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 0 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 4 */ { BxImmediate_Ib, BX_IA_BT_EdIb },
|
|
|
|
/* 5 */ { BxImmediate_Ib | BxLockable, BX_IA_BTS_EdIb },
|
|
|
|
/* 6 */ { BxImmediate_Ib | BxLockable, BX_IA_BTR_EdIb },
|
|
|
|
/* 7 */ { BxImmediate_Ib | BxLockable, BX_IA_BTC_EdIb }
|
2008-02-03 00:46:54 +03:00
|
|
|
};
|
2007-11-16 21:34:14 +03:00
|
|
|
|
|
|
|
#if BX_SUPPORT_X86_64
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfo64G8EqIb[8] = {
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 0 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
2011-01-20 19:24:42 +03:00
|
|
|
/* 4 */ { BxImmediate_Ib, BX_IA_BT_EqIb },
|
|
|
|
/* 5 */ { BxImmediate_Ib | BxLockable, BX_IA_BTS_EqIb },
|
|
|
|
/* 6 */ { BxImmediate_Ib | BxLockable, BX_IA_BTR_EqIb },
|
|
|
|
/* 7 */ { BxImmediate_Ib | BxLockable, BX_IA_BTC_EqIb }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* ******* */
|
|
|
|
/* Group 9 */
|
|
|
|
/* ******* */
|
|
|
|
|
2007-11-17 15:44:10 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG9M[8] = {
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 0 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 1 */ { BxLockable, BX_IA_CMPXCHG8B },
|
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 4 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
2010-02-15 17:04:48 +03:00
|
|
|
/* 6 */ { BxPrefixSSE, BX_IA_VMPTRLD_Mq, BxOpcodeGroupSSE_G9VMX6 },
|
|
|
|
/* 7 */ { BxPrefixSSE, BX_IA_VMPTRST_Mq, BxOpcodeGroupSSE_ERR }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#if BX_SUPPORT_X86_64
|
2007-11-17 15:44:10 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfo64G9qM[8] = {
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 0 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 1 */ { BxLockable, BX_IA_CMPXCHG16B },
|
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 4 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
2010-02-15 17:04:48 +03:00
|
|
|
/* 6 */ { BxPrefixSSE, BX_IA_VMPTRLD_Mq, BxOpcodeGroupSSE_G9VMX6 },
|
|
|
|
/* 7 */ { BxPrefixSSE, BX_IA_VMPTRST_Mq, BxOpcodeGroupSSE_ERR }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2008-04-25 01:52:28 +04:00
|
|
|
/* ******** */
|
|
|
|
/* Group 11 */
|
|
|
|
/* ******** */
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG11Eb[8] = {
|
|
|
|
/* 0 */ { BxImmediate_Ib, BX_IA_MOV_EbIb },
|
2008-04-25 01:52:28 +04:00
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 4 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
|
|
|
};
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG11Ew[8] = {
|
|
|
|
/* 0 */ { BxImmediate_Iw, BX_IA_MOV_EwIw },
|
2008-04-25 01:52:28 +04:00
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 4 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
|
|
|
};
|
|
|
|
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG11Ed[8] = {
|
|
|
|
/* 0 */ { BxImmediate_Id, BX_IA_MOV_EdId },
|
2008-04-25 01:52:28 +04:00
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 4 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
|
|
|
};
|
|
|
|
|
|
|
|
#if BX_SUPPORT_X86_64
|
2011-01-20 19:24:42 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfo64G11Eq[8] = {
|
|
|
|
/* 0 */ { BxImmediate_Id, BX_IA_MOV_EqId },
|
2008-04-25 01:52:28 +04:00
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 4 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2007-11-16 21:34:14 +03:00
|
|
|
/* ******** */
|
|
|
|
/* Group 12 */
|
|
|
|
/* ******** */
|
|
|
|
|
2008-05-01 01:32:33 +04:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG12R[8] = {
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 0 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
2008-08-29 23:23:03 +04:00
|
|
|
/* 2 */ { BxImmediate_Ib | BxPrefixSSE, BX_IA_PSRLW_PqIb, BxOpcodeGroupSSE_G1202 },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
2008-08-29 23:23:03 +04:00
|
|
|
/* 4 */ { BxImmediate_Ib | BxPrefixSSE, BX_IA_PSRAW_PqIb, BxOpcodeGroupSSE_G1204 },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
2008-08-29 23:23:03 +04:00
|
|
|
/* 6 */ { BxImmediate_Ib | BxPrefixSSE, BX_IA_PSLLW_PqIb, BxOpcodeGroupSSE_G1206 },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
/* ******** */
|
|
|
|
/* Group 13 */
|
|
|
|
/* ******** */
|
|
|
|
|
2008-05-01 01:32:33 +04:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG13R[8] = {
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 0 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
2008-08-29 23:23:03 +04:00
|
|
|
/* 2 */ { BxImmediate_Ib | BxPrefixSSE, BX_IA_PSRLD_PqIb, BxOpcodeGroupSSE_G1302 },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
2008-08-29 23:23:03 +04:00
|
|
|
/* 4 */ { BxImmediate_Ib | BxPrefixSSE, BX_IA_PSRAD_PqIb, BxOpcodeGroupSSE_G1304 },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
2008-08-29 23:23:03 +04:00
|
|
|
/* 6 */ { BxImmediate_Ib | BxPrefixSSE, BX_IA_PSLLD_PqIb, BxOpcodeGroupSSE_G1306 },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
/* ******** */
|
|
|
|
/* Group 14 */
|
|
|
|
/* ******** */
|
|
|
|
|
2008-05-01 01:32:33 +04:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG14R[8] = {
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 0 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
2008-08-29 23:23:03 +04:00
|
|
|
/* 2 */ { BxImmediate_Ib | BxPrefixSSE, BX_IA_PSRLQ_PqIb, BxOpcodeGroupSSE_G1402 },
|
2010-02-08 18:22:53 +03:00
|
|
|
/* 3 */ { BxImmediate_Ib | BxPrefixSSE66, BX_IA_PSRLDQ_UdqIb },
|
2008-04-05 02:39:45 +04:00
|
|
|
/* 4 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
2008-08-29 23:23:03 +04:00
|
|
|
/* 6 */ { BxImmediate_Ib | BxPrefixSSE, BX_IA_PSLLQ_PqIb, BxOpcodeGroupSSE_G1406 },
|
2010-02-08 18:22:53 +03:00
|
|
|
/* 7 */ { BxImmediate_Ib | BxPrefixSSE66, BX_IA_PSLLDQ_UdqIb }
|
2007-11-16 21:34:14 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
/* ******** */
|
|
|
|
/* Group 15 */
|
|
|
|
/* ******** */
|
|
|
|
|
2011-01-21 19:07:51 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG15[8*2] = {
|
|
|
|
/* /r form */
|
|
|
|
/* 0 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 3 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 4 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 5 */ { BxPrefixSSE, BX_IA_LFENCE, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 6 */ { BxPrefixSSE, BX_IA_MFENCE, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 7 */ { BxPrefixSSE, BX_IA_SFENCE, BxOpcodeGroupSSE_ERR },
|
|
|
|
|
|
|
|
/* /m form */
|
2011-03-25 23:32:07 +03:00
|
|
|
/* 0 */ { BxPrefixSSE, BX_IA_FXSAVE, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 1 */ { BxPrefixSSE, BX_IA_FXRSTOR, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 2 */ { BxPrefixSSE, BX_IA_LDMXCSR, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 3 */ { BxPrefixSSE, BX_IA_STMXCSR, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 4 */ { BxPrefixSSE, BX_IA_XSAVE, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 5 */ { BxPrefixSSE, BX_IA_XRSTOR, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 6 */ { BxPrefixSSE, BX_IA_XSAVEOPT, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 7 */ { BxPrefixSSE, BX_IA_CLFLUSH, BxOpcodeGroupSSE_ERR }
|
2007-11-17 15:44:10 +03:00
|
|
|
};
|
|
|
|
|
2010-07-22 20:41:59 +04:00
|
|
|
#if BX_SUPPORT_X86_64
|
2011-01-21 19:07:51 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoG15q[8*2] = {
|
|
|
|
/* /r form */
|
2010-07-22 20:41:59 +04:00
|
|
|
/* 0 */ { BxPrefixSSEF3, BX_IA_RDFSBASE },
|
|
|
|
/* 1 */ { BxPrefixSSEF3, BX_IA_RDGSBASE },
|
|
|
|
/* 2 */ { BxPrefixSSEF3, BX_IA_WRFSBASE },
|
|
|
|
/* 3 */ { BxPrefixSSEF3, BX_IA_WRGSBASE },
|
|
|
|
/* 4 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 5 */ { BxPrefixSSE, BX_IA_LFENCE, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 6 */ { BxPrefixSSE, BX_IA_MFENCE, BxOpcodeGroupSSE_ERR },
|
2011-01-21 19:07:51 +03:00
|
|
|
/* 7 */ { BxPrefixSSE, BX_IA_SFENCE, BxOpcodeGroupSSE_ERR },
|
|
|
|
|
|
|
|
/* /m form */
|
2011-03-25 23:32:07 +03:00
|
|
|
/* 0 */ { BxPrefixSSE, BX_IA_FXSAVE, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 1 */ { BxPrefixSSE, BX_IA_FXRSTOR, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 2 */ { BxPrefixSSE, BX_IA_LDMXCSR, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 3 */ { BxPrefixSSE, BX_IA_STMXCSR, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 4 */ { BxPrefixSSE, BX_IA_XSAVE, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 5 */ { BxPrefixSSE, BX_IA_XRSTOR, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 6 */ { BxPrefixSSE, BX_IA_XSAVEOPT, BxOpcodeGroupSSE_ERR },
|
|
|
|
/* 7 */ { BxPrefixSSE, BX_IA_CLFLUSH, BxOpcodeGroupSSE_ERR }
|
2010-07-22 20:41:59 +04:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2010-12-20 01:36:19 +03:00
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoMOV_RdCd[8] = {
|
|
|
|
/* 0 */ { 0, BX_IA_MOV_RdCR0 },
|
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_MOV_RdCR2 },
|
|
|
|
/* 3 */ { 0, BX_IA_MOV_RdCR3 },
|
|
|
|
/* 4 */ { 0, BX_IA_MOV_RdCR4 },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoMOV_CdRd[8] = {
|
|
|
|
/* 0 */ { BxTraceEnd, BX_IA_MOV_CR0Rd },
|
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_MOV_CR2Rd },
|
|
|
|
/* 3 */ { BxTraceEnd, BX_IA_MOV_CR3Rd },
|
|
|
|
/* 4 */ { BxTraceEnd, BX_IA_MOV_CR4Rd },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
|
|
|
};
|
|
|
|
|
|
|
|
#if BX_SUPPORT_X86_64
|
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoMOV_RqCq[8] = {
|
|
|
|
/* 0 */ { 0, BX_IA_MOV_RqCR0 },
|
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_MOV_RqCR2 },
|
|
|
|
/* 3 */ { 0, BX_IA_MOV_RqCR3 },
|
|
|
|
/* 4 */ { 0, BX_IA_MOV_RqCR4 },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const BxOpcodeInfo_t BxOpcodeInfoMOV_CqRq[8] = {
|
|
|
|
/* 0 */ { BxTraceEnd, BX_IA_MOV_CR0Rq },
|
|
|
|
/* 1 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 2 */ { 0, BX_IA_MOV_CR2Rq },
|
|
|
|
/* 3 */ { BxTraceEnd, BX_IA_MOV_CR3Rq },
|
|
|
|
/* 4 */ { BxTraceEnd, BX_IA_MOV_CR4Rq },
|
|
|
|
/* 5 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 6 */ { 0, BX_IA_ERROR },
|
|
|
|
/* 7 */ { 0, BX_IA_ERROR }
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2007-11-16 21:34:14 +03:00
|
|
|
#endif // BX_COMMON_FETCHDECODE_TABLES_H
|