Skip to content

Commit

Permalink
Set correct registers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Jul 24, 2023
1 parent 52be604 commit a71b8cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/ARM/ARMMapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ static void add_cs_detail_general(MCInst *MI, arm_op_group op_group,
assert(0 && "Unexpected mask value!");
case 4:
ARM_set_detail_op_sysop(MI,
ARM_MCLASSSYSREG_APSR,
ARM_MCLASSSYSREG_APSR_G,
ARM_OP_SYSREG, IsOutReg,
Mask, UINT16_MAX);
return;
Expand Down Expand Up @@ -1986,6 +1986,7 @@ void ARM_set_detail_op_sysop(MCInst *MI, int Val, arm_op_type type,
break;
case ARM_OP_SPSR:
case ARM_OP_CPSR:
ARM_get_detail_op(MI, 0)->reg = type == ARM_OP_SPSR ? ARM_REG_SPSR : ARM_REG_CPSR;
ARM_get_detail_op(MI, 0)->sysop.psr_bits = Val;
break;
}
Expand Down

0 comments on commit a71b8cc

Please sign in to comment.