mirror of https://github.com/x64dbg/zydis
Fixed operand-action for EVEX/MVEX instructions with write-mask
This commit is contained in:
parent
3b45ae2f1d
commit
652b5afadb
|
@ -1932,9 +1932,17 @@ FinalizeOperand:
|
||||||
(info->operands[1].reg >= ZYDIS_REGISTER_K1) &&
|
(info->operands[1].reg >= ZYDIS_REGISTER_K1) &&
|
||||||
(info->operands[1].reg <= ZYDIS_REGISTER_K7))
|
(info->operands[1].reg <= ZYDIS_REGISTER_K7))
|
||||||
{
|
{
|
||||||
ZYDIS_ASSERT(info->operands[0].action == ZYDIS_OPERAND_ACTION_WRITE ||
|
switch (info->operands[0].action)
|
||||||
info->operands[0].action == ZYDIS_OPERAND_ACTION_READWRITE);
|
{
|
||||||
|
case ZYDIS_OPERAND_ACTION_WRITE:
|
||||||
|
info->operands[0].action = ZYDIS_OPERAND_ACTION_CONDWRITE;
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_ACTION_READWRITE:
|
||||||
info->operands[0].action = ZYDIS_OPERAND_ACTION_READ_CONDWRITE;
|
info->operands[0].action = ZYDIS_OPERAND_ACTION_READ_CONDWRITE;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
ZYDIS_UNREACHABLE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ZYDIS_STATUS_SUCCESS;
|
return ZYDIS_STATUS_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue