Skip to content

Commit

Permalink
Check for VPT blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Jul 4, 2023
1 parent b7b3fba commit 14cb25f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion librz/asm/arch/arm/arm_it.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RZ_API void rz_arm_it_update_block(RzArmITContext *ctx, cs_insn *insn) {
cond.cond = insn->detail->arm.cc;
break;
case 0x65: //'e'
cond.cond = (insn->detail->arm.cc % 2) ? insn->detail->arm.cc + 1 : insn->detail->arm.cc - 1;
cond.cond = ARMCC_getOppositeCondition(insn->detail->arm.cc);
break;
default:
break;
Expand Down
2 changes: 1 addition & 1 deletion librz/asm/p/asm_arm_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static int disassemble(RzAsm *a, RzAsmOp *op, const ut8 *buf, int len) {
}
if (op && !op->size) {
op->size = insn->size;
if (insn->id == ARM_INS_IT) {
if (insn->id == ARM_INS_IT || insn->id == ARM_INS_VPT) {
rz_arm_it_update_block(&ctx->it, insn);
} else {
rz_arm_it_update_nonblock(&ctx->it, insn);
Expand Down

0 comments on commit 14cb25f

Please sign in to comment.