Skip to content

Commit

Permalink
Set prfm op manuall in case of unnown sysop. set_imm would add it to …
Browse files Browse the repository at this point in the history
…an memory operand wihtout base.
  • Loading branch information
Rot127 committed Nov 3, 2023
1 parent 731eb91 commit 5ba1a6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/AArch64/AArch64Mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,10 @@ static void add_cs_detail_template_1(MCInst *MI, aarch64_op_group op_group,
break;
}
}
AArch64_set_detail_op_imm(MI, OpNum, AArch64_OP_IMM, prfop);
AArch64_get_detail_op(MI, 0)->type = AArch64_OP_IMM;
AArch64_get_detail_op(MI, 0)->imm = prfop;
AArch64_get_detail_op(MI, 0)->access = map_get_op_access(MI, OpNum);
AArch64_inc_op_count(MI);
break;
}
case AArch64_OP_GROUP_SImm_16:
Expand Down

0 comments on commit 5ba1a6b

Please sign in to comment.