Fix compilation with capstone3 (#16133)

This commit is contained in:
Riccardo Schirone 2020-03-04 13:11:58 +01:00 committed by GitHub
parent eef255a8ba
commit cf9e1d5327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -92,11 +92,13 @@ static void hidden_op(cs_insn *insn, cs_x86 *x, int mode) {
op->type = X86_OP_REG;
op->reg = X86_REG_EFLAGS;
op->size = regsz;
#if CS_API_MAJOR >=4
if (id == X86_INS_PUSHF || id == X86_INS_PUSHFD || id == X86_INS_PUSHFQ) {
op->access = 1;
} else {
op->access = 2;
}
#endif
break;
case X86_INS_PUSHAW:
case X86_INS_PUSHAL: