take a funtion from BX_CPU_C:: into fetchdecode.cc standalone function
This commit is contained in:
parent
712c219688
commit
e24c7e403a
@ -4399,9 +4399,6 @@ public: // for now...
|
||||
BX_SMF int fetchDecode64(const Bit8u *fetchPtr, Bit32u fetchModeMask, bxInstruction_c *i, unsigned remainingInPage) BX_CPP_AttrRegparmN(3);
|
||||
#endif
|
||||
BX_SMF void boundaryFetch(const Bit8u *fetchPtr, unsigned remainingInPage, bxInstruction_c *);
|
||||
#if BX_SUPPORT_EVEX
|
||||
BX_SMF unsigned evex_displ8_compression(bxInstruction_c *i, unsigned ia_opcode, unsigned type, unsigned vex_w);
|
||||
#endif
|
||||
BX_SMF char* disasm(const Bit8u *opcode, bool is_32, bool is_64, char *disbufptr, bxInstruction_c *i, bx_address cs_base = 0, bx_address rip = 0);
|
||||
|
||||
BX_SMF bxICacheEntry_c *serveICacheMiss(Bit32u eipBiased, bx_phy_address pAddr);
|
||||
|
@ -172,6 +172,10 @@ bxIAOpcodeTable BxOpcodesTable[] = {
|
||||
|
||||
extern Bit16u WalkOpcodeTables(const BxOpcodeInfo_t *OpcodeInfoPtr, Bit16u &attr, Bit32u fetchModeMask, unsigned modrm, unsigned sse_prefix, unsigned osize, unsigned vex_vl, bx_bool vex_w);
|
||||
|
||||
#if BX_SUPPORT_EVEX
|
||||
extern unsigned evex_displ8_compression(bxInstruction_c *i, unsigned ia_opcode, unsigned type, unsigned vex_w);
|
||||
#endif
|
||||
|
||||
/* ************************** */
|
||||
/* 512 entries for 16bit mode */
|
||||
/* 512 entries for 32bit mode */
|
||||
@ -2041,7 +2045,7 @@ decode_done:
|
||||
}
|
||||
|
||||
#if BX_SUPPORT_EVEX
|
||||
unsigned BX_CPU_C::evex_displ8_compression(bxInstruction_c *i, unsigned ia_opcode, unsigned type, unsigned vex_w)
|
||||
unsigned evex_displ8_compression(bxInstruction_c *i, unsigned ia_opcode, unsigned type, unsigned vex_w)
|
||||
{
|
||||
if (ia_opcode == BX_IA_V512_VMOVDDUP_VpdWpd && i->getVL() == BX_VL128)
|
||||
return 8;
|
||||
|
@ -135,6 +135,10 @@ extern struct bxIAOpcodeTable BxOpcodesTable[];
|
||||
|
||||
extern Bit16u WalkOpcodeTables(const BxOpcodeInfo_t *OpcodeInfoPtr, Bit16u &attr, Bit32u fetchModeMask, unsigned modrm, unsigned sse_prefix, unsigned osize, unsigned vex_vl, bx_bool vex_w);
|
||||
|
||||
#if BX_SUPPORT_EVEX
|
||||
extern unsigned evex_displ8_compression(bxInstruction_c *i, unsigned ia_opcode, unsigned type, unsigned vex_w);
|
||||
#endif
|
||||
|
||||
// 512 entries for 16bit operand size
|
||||
// 512 entries for 32bit operand size
|
||||
// 512 entries for 64bit operand size
|
||||
|
Loading…
x
Reference in New Issue
Block a user