mirror of https://github.com/x64dbg/zydis
Added `ZYDIS_ATTRIB_IS_PRIVILEGED`
This commit is contained in:
parent
34a0572948
commit
428da82416
|
@ -2046,6 +2046,10 @@ static void ZydisSetAttributes(ZydisDecoderContext* context, ZydisDecodedInstruc
|
||||||
const ZydisInstructionDefinitionDEFAULT* def =
|
const ZydisInstructionDefinitionDEFAULT* def =
|
||||||
(const ZydisInstructionDefinitionDEFAULT*)definition;
|
(const ZydisInstructionDefinitionDEFAULT*)definition;
|
||||||
|
|
||||||
|
if (def->isPrivileged)
|
||||||
|
{
|
||||||
|
instruction->attributes |= ZYDIS_ATTRIB_IS_PRIVILEGED;
|
||||||
|
}
|
||||||
if (def->acceptsLock)
|
if (def->acceptsLock)
|
||||||
{
|
{
|
||||||
instruction->attributes |= ZYDIS_ATTRIB_ACCEPTS_LOCK;
|
instruction->attributes |= ZYDIS_ATTRIB_ACCEPTS_LOCK;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -676,16 +676,17 @@ typedef struct ZydisInstructionDefinition_
|
||||||
typedef struct ZydisInstructionDefinitionDEFAULT_
|
typedef struct ZydisInstructionDefinitionDEFAULT_
|
||||||
{
|
{
|
||||||
ZYDIS_INSTRUCTION_DEFINITION_BASE;
|
ZYDIS_INSTRUCTION_DEFINITION_BASE;
|
||||||
ZydisBool acceptsLock ZYDIS_BITFIELD(1);
|
ZydisBool isPrivileged ZYDIS_BITFIELD( 1);
|
||||||
ZydisBool acceptsREP ZYDIS_BITFIELD(1);
|
ZydisBool acceptsLock ZYDIS_BITFIELD( 1);
|
||||||
ZydisBool acceptsREPEREPZ ZYDIS_BITFIELD(1);
|
ZydisBool acceptsREP ZYDIS_BITFIELD( 1);
|
||||||
ZydisBool acceptsREPNEREPNZ ZYDIS_BITFIELD(1);
|
ZydisBool acceptsREPEREPZ ZYDIS_BITFIELD( 1);
|
||||||
ZydisBool acceptsBOUND ZYDIS_BITFIELD(1);
|
ZydisBool acceptsREPNEREPNZ ZYDIS_BITFIELD( 1);
|
||||||
ZydisBool acceptsXACQUIRE ZYDIS_BITFIELD(1);
|
ZydisBool acceptsBOUND ZYDIS_BITFIELD( 1);
|
||||||
ZydisBool acceptsXRELEASE ZYDIS_BITFIELD(1);
|
ZydisBool acceptsXACQUIRE ZYDIS_BITFIELD( 1);
|
||||||
ZydisBool acceptsHLEWithoutLock ZYDIS_BITFIELD(1);
|
ZydisBool acceptsXRELEASE ZYDIS_BITFIELD( 1);
|
||||||
ZydisBool acceptsBranchHints ZYDIS_BITFIELD(1);
|
ZydisBool acceptsHLEWithoutLock ZYDIS_BITFIELD( 1);
|
||||||
ZydisBool acceptsSegment ZYDIS_BITFIELD(1);
|
ZydisBool acceptsBranchHints ZYDIS_BITFIELD( 1);
|
||||||
|
ZydisBool acceptsSegment ZYDIS_BITFIELD( 1);
|
||||||
} ZydisInstructionDefinitionDEFAULT;
|
} ZydisInstructionDefinitionDEFAULT;
|
||||||
|
|
||||||
typedef struct ZydisInstructionDefinition3DNOW_
|
typedef struct ZydisInstructionDefinition3DNOW_
|
||||||
|
@ -701,27 +702,27 @@ typedef struct ZydisInstructionDefinitionXOP_
|
||||||
typedef struct ZydisInstructionDefinitionVEX_
|
typedef struct ZydisInstructionDefinitionVEX_
|
||||||
{
|
{
|
||||||
ZYDIS_INSTRUCTION_DEFINITION_BASE_VECTOR;
|
ZYDIS_INSTRUCTION_DEFINITION_BASE_VECTOR;
|
||||||
ZydisVEXStaticBroadcast broadcast ZYDIS_BITFIELD(3);
|
ZydisVEXStaticBroadcast broadcast ZYDIS_BITFIELD( 3);
|
||||||
} ZydisInstructionDefinitionVEX;
|
} ZydisInstructionDefinitionVEX;
|
||||||
|
|
||||||
typedef struct ZydisInstructionDefinitionEVEX_
|
typedef struct ZydisInstructionDefinitionEVEX_
|
||||||
{
|
{
|
||||||
ZYDIS_INSTRUCTION_DEFINITION_BASE_VECTOR_EX;
|
ZYDIS_INSTRUCTION_DEFINITION_BASE_VECTOR_EX;
|
||||||
ZydisInternalVectorLength vectorLength ZYDIS_BITFIELD(2);
|
ZydisInternalVectorLength vectorLength ZYDIS_BITFIELD( 2);
|
||||||
ZydisEVEXTupleType tupleType ZYDIS_BITFIELD(4);
|
ZydisEVEXTupleType tupleType ZYDIS_BITFIELD( 4);
|
||||||
ZydisInternalElementSize elementSize ZYDIS_BITFIELD(4);
|
ZydisInternalElementSize elementSize ZYDIS_BITFIELD( 4);
|
||||||
ZydisEVEXFunctionality functionality ZYDIS_BITFIELD(2);
|
ZydisEVEXFunctionality functionality ZYDIS_BITFIELD( 2);
|
||||||
ZydisMaskPolicy maskPolicy ZYDIS_BITFIELD(2);
|
ZydisMaskPolicy maskPolicy ZYDIS_BITFIELD( 2);
|
||||||
ZydisEVEXStaticBroadcast broadcast ZYDIS_BITFIELD(4);
|
ZydisEVEXStaticBroadcast broadcast ZYDIS_BITFIELD( 4);
|
||||||
} ZydisInstructionDefinitionEVEX;
|
} ZydisInstructionDefinitionEVEX;
|
||||||
|
|
||||||
typedef struct ZydisInstructionDefinitionMVEX_
|
typedef struct ZydisInstructionDefinitionMVEX_
|
||||||
{
|
{
|
||||||
ZYDIS_INSTRUCTION_DEFINITION_BASE_VECTOR_EX;
|
ZYDIS_INSTRUCTION_DEFINITION_BASE_VECTOR_EX;
|
||||||
ZydisMVEXFunctionality functionality ZYDIS_BITFIELD(5);
|
ZydisMVEXFunctionality functionality ZYDIS_BITFIELD( 5);
|
||||||
ZydisMaskPolicy maskPolicy ZYDIS_BITFIELD(2);
|
ZydisMaskPolicy maskPolicy ZYDIS_BITFIELD( 2);
|
||||||
ZydisBool hasElementGranularity ZYDIS_BITFIELD(1);
|
ZydisBool hasElementGranularity ZYDIS_BITFIELD( 1);
|
||||||
ZydisMVEXStaticBroadcast broadcast ZYDIS_BITFIELD(3);
|
ZydisMVEXStaticBroadcast broadcast ZYDIS_BITFIELD( 3);
|
||||||
} ZydisInstructionDefinitionMVEX;
|
} ZydisInstructionDefinitionMVEX;
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
Loading…
Reference in New Issue