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,6 +676,7 @@ typedef struct ZydisInstructionDefinition_
|
||||||
typedef struct ZydisInstructionDefinitionDEFAULT_
|
typedef struct ZydisInstructionDefinitionDEFAULT_
|
||||||
{
|
{
|
||||||
ZYDIS_INSTRUCTION_DEFINITION_BASE;
|
ZYDIS_INSTRUCTION_DEFINITION_BASE;
|
||||||
|
ZydisBool isPrivileged ZYDIS_BITFIELD( 1);
|
||||||
ZydisBool acceptsLock ZYDIS_BITFIELD( 1);
|
ZydisBool acceptsLock ZYDIS_BITFIELD( 1);
|
||||||
ZydisBool acceptsREP ZYDIS_BITFIELD( 1);
|
ZydisBool acceptsREP ZYDIS_BITFIELD( 1);
|
||||||
ZydisBool acceptsREPEREPZ ZYDIS_BITFIELD( 1);
|
ZydisBool acceptsREPEREPZ ZYDIS_BITFIELD( 1);
|
||||||
|
|
Loading…
Reference in New Issue