FENCE instructions are SSE2 only

This commit is contained in:
Stanislav Shwartsman 2010-04-18 09:21:24 +00:00
parent e76cad98ec
commit 7319d2eee1
2 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: fetchdecode.h,v 1.101 2010-04-07 14:49:18 sshwarts Exp $
// $Id: fetchdecode.h,v 1.102 2010-04-18 09:21:24 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2005-2010 Stanislav Shwartsman
@ -942,9 +942,9 @@ static const BxOpcodeInfo_t BxOpcodeInfoG15R[8] = {
/* 2 */ { 0, BX_IA_ERROR },
/* 3 */ { 0, BX_IA_ERROR },
/* 4 */ { 0, BX_IA_ERROR },
/* 5 */ { BxPrefixSSE, BX_IA_NOP, BxOpcodeGroupSSE_ERR }, /* LFENCE */
/* 6 */ { BxPrefixSSE, BX_IA_NOP, BxOpcodeGroupSSE_ERR }, /* MFENCE */
/* 7 */ { BxPrefixSSE, BX_IA_NOP, BxOpcodeGroupSSE_ERR } /* SFENCE */
/* 5 */ { BxPrefixSSE, BX_IA_LFENCE, BxOpcodeGroupSSE_ERR },
/* 6 */ { BxPrefixSSE, BX_IA_MFENCE, BxOpcodeGroupSSE_ERR },
/* 7 */ { BxPrefixSSE, BX_IA_SFENCE, BxOpcodeGroupSSE_ERR }
};
#endif // BX_COMMON_FETCHDECODE_TABLES_H

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: ia_opcodes.h,v 1.47 2010-04-16 19:52:44 sshwarts Exp $
// $Id: ia_opcodes.h,v 1.48 2010-04-18 09:21:24 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2008-2010 Stanislav Shwartsman
@ -1186,6 +1186,9 @@ bx_define_opcode(BX_IA_PSRLQ_UdqIb, &BX_CPU_C::PSRLQ_UdqIb, NULL, BX_CPU_SSE2)
bx_define_opcode(BX_IA_PSRLDQ_UdqIb, &BX_CPU_C::PSRLDQ_UdqIb, NULL, BX_CPU_SSE2)
bx_define_opcode(BX_IA_PSLLQ_UdqIb, &BX_CPU_C::PSLLQ_UdqIb, NULL, BX_CPU_SSE2)
bx_define_opcode(BX_IA_PSLLDQ_UdqIb, &BX_CPU_C::PSLLDQ_UdqIb, NULL, BX_CPU_SSE2)
bx_define_opcode(BX_IA_LFENCE, &BX_CPU_C::NOP, NULL, BX_CPU_SSE2)
bx_define_opcode(BX_IA_SFENCE, &BX_CPU_C::NOP, NULL, BX_CPU_SSE2)
bx_define_opcode(BX_IA_MFENCE, &BX_CPU_C::NOP, NULL, BX_CPU_SSE2)
// SSE2
// SSE3