Skip to content

Commit 13e8a11

Browse files
committed
[thumb2] Fix #6328: "Invalid intrinsic lifting for MRS instruction: destination register incorrectly specified" by correctly specifying the intrinsic outputs
1 parent 1699c71 commit 13e8a11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/armv7/thumb2_disasm/il_thumb2.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,8 @@ bool GetLowLevelILForThumbInstruction(Architecture* arch, LowLevelILFunction& il
994994
break;
995995
case armv7::ARMV7_MRS:
996996
{
997-
int dest_reg = ReadILOperand(il, instr, 0);
997+
int dest_reg = GetRegisterByIndex(instr->fields[instr->format->operands[0].field0], instr->format->operands[0].prefix);
998+
998999
int intrinsic_id = ARMV7_INTRIN_MRS;
9991000

10001001
il.AddInstruction(

0 commit comments

Comments
 (0)