Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b3dd576

Browse files
authored
Set correct values for the MCRegisterInfo struct. (capstone-engine#2146)
1 parent baa2730 commit b3dd576

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

arch/ARM/ARMMapping.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -635,10 +635,11 @@ bool ARM_getInstruction(csh handle, const uint8_t *code, size_t code_len,
635635

636636
void ARM_init_mri(MCRegisterInfo *MRI)
637637
{
638-
MCRegisterInfo_InitMCRegisterInfo(MRI, ARMRegDesc, 289, 0, 0,
639-
ARMMCRegisterClasses, 103, 0, 0,
638+
MCRegisterInfo_InitMCRegisterInfo(MRI, ARMRegDesc, ARM_REG_ENDING, 0, 0,
639+
ARMMCRegisterClasses,
640+
ARR_SIZE(ARMMCRegisterClasses), 0, 0,
640641
ARMRegDiffLists, 0, ARMSubRegIdxLists,
641-
57, 0);
642+
ARR_SIZE(ARMSubRegIdxLists), 0);
642643
}
643644

644645
static const map_insn_ops insn_operands[] = {

0 commit comments

Comments
 (0)