From a843421043ac39cceca2f12cca895497175110c5 Mon Sep 17 00:00:00 2001 From: Rot127 Date: Tue, 21 May 2024 01:25:22 -0500 Subject: [PATCH] Use Capstone reg enum for comparison --- arch/AArch64/AArch64Mapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/AArch64/AArch64Mapping.c b/arch/AArch64/AArch64Mapping.c index 551e2b7eeb..9d3daa0f80 100644 --- a/arch/AArch64/AArch64Mapping.c +++ b/arch/AArch64/AArch64Mapping.c @@ -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;