Skip to content

Commit

Permalink
Use Capstone reg enum for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed May 21, 2024
1 parent 4d24224 commit a843421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/AArch64/AArch64Mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -2196,7 +2196,7 @@ void AArch64_set_detail_op_reg(MCInst *MI, unsigned OpNum, aarch64_reg Reg)
AArch64_set_detail_op_sme_mx(MI, OpNum, AArch64_SME_MATRIX_TILE,
sme_reg_to_vas(Reg));
return;
} else if ((Reg >= AArch64_P0) && (Reg <= AArch64_P15)) {
} else if ((Reg >= AArch64_REG_P0) && (Reg <= AArch64_REG_P15)) {
// SME/SVE predicate register.
AArch64_set_detail_op_sme_pred(MI, OpNum);
return;
Expand Down

0 comments on commit a843421

Please sign in to comment.